SHOW:
|
|
- or go back to the newest paste.
| 1 | print([[ | |
| 2 | ___________________________________ | |
| 3 | ||
| 4 | - | Kyutatsuki13's Chara script |
| 4 | + | Kyutatsuki13's Chara script(edit by micheal2358) |
| 5 | Build 0002 | |
| 6 | - | Don't even mind why I did this, it was a challenge ! |
| 6 | + | MICHEAL THE MURDER IS BACK AFTER FIGHT WITH NEPTUNIAN V |
| 7 | HE WANT REVENGE | |
| 8 | (Can some one make video on this,please? | |
| 9 | im see some much skids use my edits....but how about make video on this?) | |
| 10 | ___________________________________ | |
| 11 | ]]) | |
| 12 | - | warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
|
| 12 | + | |
| 13 | ||
| 14 | warn("IF YOU FAN OF NEPTUNIAN V MICHEAL ALREADY BACK OF YOU, "..game:GetService("Players").LocalPlayer.Name.." =)")
| |
| 15 | ||
| 16 | local p = game:GetService("Players").LocalPlayer
| |
| 17 | local char = p.Character | |
| 18 | local mouse = p:GetMouse() | |
| 19 | local larm = char:WaitForChild("Left Arm")
| |
| 20 | local rarm = char:WaitForChild("Right Arm")
| |
| 21 | local lleg = char:WaitForChild("Left Leg")
| |
| 22 | local rleg = char:WaitForChild("Right Leg")
| |
| 23 | local hed = char:WaitForChild("Head")
| |
| 24 | local torso = char:WaitForChild("Torso")
| |
| 25 | local root = char:WaitForChild("HumanoidRootPart")
| |
| 26 | local hum = char:FindFirstChildOfClass("Humanoid")
| |
| 27 | local debris = game:GetService("Debris")
| |
| 28 | local input = game:GetService("UserInputService")
| |
| 29 | local run = game:GetService("RunService")
| |
| 30 | local rs = run.RenderStepped | |
| 31 | local wingpose = "Idle" | |
| 32 | local DebrisModel = Instance.new("Model",char)
| |
| 33 | DebrisModel.Name = "Debris" | |
| 34 | repeat rs:wait() until p.CharacterAppearanceLoaded | |
| 35 | ||
| 36 | noidle = false | |
| 37 | shift = false | |
| 38 | control = false | |
| 39 | no_nosound_able = false | |
| 40 | kills = 0 | |
| 41 | ||
| 42 | ---------------------------------------------------------------------------- | |
| 43 | ||
| 44 | function rswait(value) | |
| 45 | if value ~= nil and value ~= 0 then | |
| 46 | for i=1,value do | |
| 47 | rs:wait() | |
| 48 | end | |
| 49 | else | |
| 50 | rs:wait() | |
| 51 | end | |
| 52 | end | |
| 53 | ||
| 54 | ---------------------------------------------------------------------------- | |
| 55 | ||
| 56 | local timeposition = 0 | |
| 57 | ||
| 58 | function music(id) | |
| 59 | if not torso:FindFirstChild("MusicRuin") then
| |
| 60 | soundz = Instance.new("Sound",torso)
| |
| 61 | end | |
| 62 | soundz.Volume = 10 | |
| 63 | soundz.Name = "MusicRuin" | |
| 64 | soundz.Looped = true | |
| 65 | soundz.PlaybackSpeed = 1 | |
| 66 | soundz.SoundId = "rbxassetid://"..id | |
| 67 | soundz:Stop() | |
| 68 | soundz:Play() | |
| 69 | if no_nosound_able == true then | |
| 70 | soundz.TimePosition = timeposition | |
| 71 | end | |
| 72 | end | |
| 73 | ||
| 74 | ---------------------------------------------------------------------------- | |
| 75 | ||
| 76 | function lerp(a, b, t) | |
| 77 | return a + (b - a)*t | |
| 78 | end | |
| 79 | ||
| 80 | ---------------------------------------------------------------------------- | |
| 81 | ||
| 82 | function Lerp(c1,c2,al) | |
| 83 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 84 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 85 | for i,v in pairs(com1) do | |
| 86 | com1[i] = v+(com2[i]-v)*al | |
| 87 | end | |
| 88 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 89 | end | |
| 90 | ||
| 91 | ---------------------------------------------------------------------------- | |
| 92 | ||
| 93 | function slerp(a, b, t) | |
| 94 | dot = a:Dot(b) | |
| 95 | if dot > 0.99999 or dot < -0.99999 then | |
| 96 | return t <= 0.5 and a or b | |
| 97 | else | |
| 98 | r = math.acos(dot) | |
| 99 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 100 | end | |
| 101 | end | |
| 102 | ||
| 103 | ---------------------------------------------------------------------------- | |
| 104 | ||
| 105 | function clerp(c1,c2,al) | |
| 106 | ||
| 107 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 108 | ||
| 109 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 110 | ||
| 111 | for i,v in pairs(com1) do | |
| 112 | ||
| 113 | com1[i] = lerp(v,com2[i],al) | |
| 114 | ||
| 115 | end | |
| 116 | ||
| 117 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 118 | ||
| 119 | end | |
| 120 | ||
| 121 | ---------------------------------------------------------------------------- | |
| 122 | ||
| 123 | function findAllNearestTorso(pos,dist) | |
| 124 | local list = workspace:children() | |
| 125 | local torso = {}
| |
| 126 | local temp = nil | |
| 127 | local human = nil | |
| 128 | local temp2 = nil | |
| 129 | for x = 1, #list do | |
| 130 | temp2 = list[x] | |
| 131 | if (temp2.className == "Model") and (temp2 ~= char) then | |
| 132 | temp = temp2:findFirstChild("Torso")
| |
| 133 | human = temp2:findFirstChildOfClass("Humanoid")
| |
| 134 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
| 135 | if (temp.Position - pos).magnitude < dist then | |
| 136 | table.insert(torso,temp) | |
| 137 | dist = (temp.Position - pos).magnitude | |
| 138 | end | |
| 139 | end | |
| 140 | end | |
| 141 | end | |
| 142 | return torso | |
| 143 | end | |
| 144 | ||
| 145 | ---------------------------------------------------------------------------- | |
| 146 | ||
| 147 | function checkIfNotPlayer(model) | |
| 148 | if model.CanCollide == true and model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel and model ~= wings and model.Parent ~= wings and model.Parent.Parent ~= wings then | |
| 149 | return true | |
| 150 | else | |
| 151 | return false | |
| 152 | end | |
| 153 | end | |
| 154 | ||
| 155 | ---------------------------------------------------------------------------- | |
| 156 | ||
| 157 | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) | |
| 158 | ||
| 159 | local wld = Instance.new("Weld", wp1)
| |
| 160 | ||
| 161 | wld.Part0 = wp0 | |
| 162 | ||
| 163 | wld.Part1 = wp1 | |
| 164 | ||
| 165 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 166 | ||
| 167 | return wld | |
| 168 | ||
| 169 | end | |
| 170 | ||
| 171 | function weld(model) | |
| 172 | local parts,last = {}
| |
| 173 | local function scan(parent) | |
| 174 | for _,v in pairs(parent:GetChildren()) do | |
| 175 | if (v:IsA("BasePart")) then
| |
| 176 | if (last) then | |
| 177 | local w = Instance.new("Weld")
| |
| 178 | w.Name = ("%s_Weld"):format(v.Name)
| |
| 179 | w.Part0,w.Part1 = last,v | |
| 180 | w.C0 = last.CFrame:inverse() | |
| 181 | w.C1 = v.CFrame:inverse() | |
| 182 | w.Parent = last | |
| 183 | end | |
| 184 | last = v | |
| 185 | table.insert(parts,v) | |
| 186 | end | |
| 187 | scan(v) | |
| 188 | end | |
| 189 | end | |
| 190 | scan(model) | |
| 191 | for _,v in pairs(parts) do | |
| 192 | v.Anchored = false | |
| 193 | v.Locked = true | |
| 194 | v.Anchored = false | |
| 195 | v.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 196 | v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 197 | v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 198 | v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 199 | v.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 200 | v.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 201 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0) | |
| 202 | end | |
| 203 | end | |
| 204 | ||
| 205 | ---------------------------------------------------------------------------- | |
| 206 | ||
| 207 | function calculate(part,asd) | |
| 208 | local Head = hed | |
| 209 | local RightShoulder = asd | |
| 210 | local RightArm = part | |
| 211 | local MousePosition = mouse.Hit.p | |
| 212 | local ToMouse = (MousePosition - Head.Position).unit | |
| 213 | local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0))) | |
| 214 | local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0))) | |
| 215 | local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit | |
| 216 | local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit | |
| 217 | local LateralAngle = math.acos(ToMouseRightArm:Dot(Look)) | |
| 218 | if tostring(LateralAngle) == "-1.#IND" then | |
| 219 | LateralAngle = 0 | |
| 220 | end | |
| 221 | local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm) | |
| 222 | if LateralAngle > (math.pi / 2) then | |
| 223 | LateralAngle = (math.pi / 2) | |
| 224 | local Torso = root | |
| 225 | local Point = Torso.CFrame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p) | |
| 226 | if Point.Z > 0 then | |
| 227 | if Point.X > -0 and RightArm == rarm then | |
| 228 | Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(110),0) | |
| 229 | elseif Point.X < 0 and RightArm == rarm then | |
| 230 | Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(-110),0) | |
| 231 | end | |
| 232 | end | |
| 233 | end | |
| 234 | if Cross.Y < 0 then | |
| 235 | LateralAngle = -LateralAngle | |
| 236 | end | |
| 237 | return(CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)) | |
| 238 | end | |
| 239 | ||
| 240 | ---------------------------------------------------------------------------- | |
| 241 | ||
| 242 | function sound(id,position,vol,pitch,start,finish) | |
| 243 | coroutine.resume(coroutine.create(function() | |
| 244 | ||
| 245 | local part = Instance.new("Part",workspace)
| |
| 246 | part.Position = position | |
| 247 | part.Size = Vector3.new(0,0,0) | |
| 248 | part.CanCollide = false | |
| 249 | part.Transparency = 1 | |
| 250 | ||
| 251 | local sound = Instance.new("Sound",part)
| |
| 252 | ||
| 253 | sound.SoundId = "rbxassetid://"..id | |
| 254 | ||
| 255 | repeat rs:wait() until sound.IsLoaded | |
| 256 | ||
| 257 | if vol ~= nil then | |
| 258 | sound.Volume = vol | |
| 259 | end | |
| 260 | ||
| 261 | if pitch ~= nil then | |
| 262 | sound.PlaybackSpeed = pitch | |
| 263 | end | |
| 264 | ||
| 265 | if start ~= nil then | |
| 266 | sound.TimePosition = start | |
| 267 | end | |
| 268 | ||
| 269 | if finish ~= nil then | |
| 270 | debris:AddItem(part,finish-start) | |
| 271 | else | |
| 272 | debris:AddItem(part,sound.TimeLength) | |
| 273 | end | |
| 274 | ||
| 275 | sound:Play() | |
| 276 | ||
| 277 | return sound | |
| 278 | ||
| 279 | end)) | |
| 280 | end | |
| 281 | ||
| 282 | ---------------------------------------------------------------------------- | |
| 283 | ||
| 284 | function computeDirection(vec) | |
| 285 | local lenSquared = vec.magnitude * vec.magnitude | |
| 286 | local invSqrt = 1 / math.sqrt(lenSquared) | |
| 287 | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) | |
| 288 | end | |
| 289 | ||
| 290 | ---------------------------------------------------------------------------- | |
| 291 | ||
| 292 | local shaking = 0 | |
| 293 | function shake(num) if num > shaking then shaking = num end end | |
| 294 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 295 | hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))*(shaking/100) | |
| 296 | if shaking > 0 then shaking = shaking - 1 else shaking = 0 end | |
| 297 | end) | |
| 298 | ||
| 299 | plr = game:GetService("Players").LocalPlayer
| |
| 300 | DebrisModel = Instance.new("Model",plr.Character)
| |
| 301 | DebrisModel.Name = "DebrisModel" | |
| 302 | ||
| 303 | function Effect(mesh,size,transparency,material,color,position,rotation,sizechange,rotationchange,transparencychange,acceleration) | |
| 304 | ||
| 305 | local part = Instance.new("Part",DebrisModel)
| |
| 306 | part.Anchored = true | |
| 307 | part.CanCollide = false | |
| 308 | part.Size = Vector3.new(1,1,1) | |
| 309 | part.Transparency = transparency | |
| 310 | part.Material = material | |
| 311 | part.Color = color | |
| 312 | part.CFrame = CFrame.new(position)*CFrame.Angles(math.rad(rotation.X),math.rad(rotation.Y),math.rad(rotation.Z)) | |
| 313 | ||
| 314 | local partmesh = Instance.new("SpecialMesh",part)
| |
| 315 | if tonumber(mesh) == nil then partmesh.MeshType = mesh else partmesh.MeshId = "rbxassetid://"..mesh end | |
| 316 | partmesh.Scale = size | |
| 317 | ||
| 318 | local pvalue = Instance.new("Vector3Value",part)
| |
| 319 | pvalue.Name = "Position" | |
| 320 | pvalue.Value = part.Position | |
| 321 | ||
| 322 | local svalue = Instance.new("Vector3Value",part)
| |
| 323 | svalue.Name = "Size" | |
| 324 | svalue.Value = sizechange | |
| 325 | ||
| 326 | local rvalue = Instance.new("Vector3Value",part)
| |
| 327 | rvalue.Name = "Rotation" | |
| 328 | rvalue.Value = rotationchange | |
| 329 | ||
| 330 | local tvalue = Instance.new("NumberValue",part)
| |
| 331 | tvalue.Name = "Transparency" | |
| 332 | tvalue.Value = transparencychange | |
| 333 | ||
| 334 | local avalue = Instance.new("NumberValue",part)
| |
| 335 | avalue.Name = "Acceleration" | |
| 336 | avalue.Value = acceleration | |
| 337 | ||
| 338 | part.Name = "EFFECT" | |
| 339 | ||
| 340 | return part | |
| 341 | ||
| 342 | end | |
| 343 | ||
| 344 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 345 | ||
| 346 | ||
| 347 | if not plr.Character:FindFirstChild("DebrisModel") then
| |
| 348 | DebrisModel = Instance.new("Model",plr.Character)
| |
| 349 | DebrisModel.Name = "DebrisModel" | |
| 350 | end | |
| 351 | ||
| 352 | for i,v in pairs(DebrisModel:GetChildren()) do | |
| 353 | if v:IsA("BasePart") and v.Name == "EFFECT" then
| |
| 354 | local pvalue = v:FindFirstChild("Position").Value
| |
| 355 | local svalue = v:FindFirstChild("Size").Value
| |
| 356 | local rvalue = v:FindFirstChild("Rotation").Value
| |
| 357 | local tvalue = v:FindFirstChild("Transparency").Value
| |
| 358 | local avalue = v:FindFirstChild("Acceleration").Value
| |
| 359 | local mesh = v:FindFirstChild("Mesh")
| |
| 360 | mesh.Scale = mesh.Scale + svalue | |
| 361 | v:FindFirstChild("Size").Value = v:FindFirstChild("Size").Value + (Vector3.new(1,1,1)*avalue)
| |
| 362 | v.Transparency = v.Transparency + tvalue | |
| 363 | v.CFrame = v.CFrame*CFrame.Angles(math.rad(rvalue.X),math.rad(rvalue.Y),math.rad(rvalue.Z)) | |
| 364 | if v.Transparency >= 1 or mesh.Scale.X < 0 or mesh.Scale.Y < 0 or mesh.Scale.Z < 0 then | |
| 365 | v:Destroy() | |
| 366 | end | |
| 367 | end | |
| 368 | end | |
| 369 | ||
| 370 | ||
| 371 | end) | |
| 372 | - | skin_color = BrickColor.new("Light orange")
|
| 372 | + | |
| 373 | ---------------------------------------------------------------------------- | |
| 374 | skin_color = BrickColor.new("Really black")
| |
| 375 | p:ClearCharacterAppearance() | |
| 376 | --hed:WaitForChild("face"):Destroy()
| |
| 377 | ||
| 378 | ---------------------------------------------------------------------------- | |
| 379 | music(540857600) | |
| 380 | equalizer = Instance.new("EqualizerSoundEffect",torso:FindFirstChild("MusicRuin"))
| |
| 381 | ||
| 382 | local size = 1 | |
| 383 | ||
| 384 | newWeld(torso, larm, -1.5*size, 0.5*size, 0) | |
| 385 | larm.Weld.C1 = CFrame.new(0, 0.5*size, 0) | |
| 386 | newWeld(torso, rarm, 1.5*size, 0.5*size, 0) | |
| 387 | rarm.Weld.C1 = CFrame.new(0, 0.5*size, 0) | |
| 388 | newWeld(torso, hed, 0, 1.5*size, 0) | |
| 389 | newWeld(torso, lleg, -0.5*size, -1, 0) | |
| 390 | lleg.Weld.C1 = CFrame.new(0, 1*size, 0) | |
| 391 | newWeld(torso, rleg, 0.5*size, -1*size, 0) | |
| 392 | rleg.Weld.C1 = CFrame.new(0, 1*size, 0) | |
| 393 | newWeld(root, torso, 0, -1*size, 0) | |
| 394 | torso.Weld.C1 = CFrame.new(0, -1*size, 0) | |
| 395 | ||
| 396 | emitters={}
| |
| 397 | for i,v in pairs(char:GetChildren()) do | |
| 398 | if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
| |
| 399 | local emitter = Instance.new("ParticleEmitter",v)
| |
| 400 | emitter.LightEmission = 1 | |
| 401 | emitter.Transparency = NumberSequence.new(0.95,1) | |
| 402 | emitter.Size = NumberSequence.new(2,5) | |
| 403 | emitter.SpreadAngle = Vector2.new(360,360) | |
| 404 | emitter.Speed = NumberRange.new(1) | |
| 405 | emitter.Lifetime = NumberRange.new(0.75) | |
| 406 | emitter.Texture = "rbxassetid://133619974" | |
| 407 | emitter.Rate = 20 | |
| 408 | emitter.Color = ColorSequence.new(Color3.new(1,0,0)) | |
| 409 | emitter.LockedToPart = true | |
| 410 | table.insert(emitters,emitter) | |
| 411 | end | |
| 412 | end | |
| 413 | - | hair.Color = Color3.fromRGB(30,10,0) |
| 413 | + | |
| 414 | hair = Instance.new("Part",char)
| |
| 415 | hair.Color = Color3.fromRGB(0,0,0) | |
| 416 | - | meshhair.MeshId = "rbxassetid://431809364" |
| 416 | + | |
| 417 | meshhair = Instance.new("SpecialMesh",hair)
| |
| 418 | meshhair.MeshId = "rbxassetid://16627529" | |
| 419 | meshhair.Scale = Vector3.new(1,1,1)*1.1 | |
| 420 | newWeld(hed,hair,0,0.22,0) | |
| 421 | ||
| 422 | - | Part2 = Instance.new("Part")
|
| 422 | + | for i,v in pairs(char:children()) do |
| 423 | if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then
| |
| 424 | v:Remove() | |
| 425 | end | |
| 426 | end | |
| 427 | shirt = Instance.new("Shirt", char)
| |
| 428 | shirt.Name = "Shirt" | |
| 429 | pants = Instance.new("Pants", char)
| |
| 430 | pants.Name = "Pants" | |
| 431 | char.Shirt.ShirtTemplate = "rbxassetid://276792537" | |
| 432 | - | Part1.Size = Vector3.new(2.02000022, 0.370000094, 1.01999998) |
| 432 | + | char.Pants.PantsTemplate = "rbxassetid://276792689" |
| 433 | - | Part1.CFrame = CFrame.new(87.5, 17.1749992, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 433 | + | |
| 434 | CV="Maroon" | |
| 435 | Player = owner | |
| 436 | - | Part1.Position = Vector3.new(87.5, 17.1749992, 83.5) |
| 436 | + | Character = Player.Character |
| 437 | - | Part1.Color = Color3.new(0, 1, 0) |
| 437 | + | local txt = Instance.new("BillboardGui", Character)
|
| 438 | - | Part2.Parent = Model0 |
| 438 | + | txt.Adornee = Character .Head |
| 439 | - | Part2.Anchored = true |
| 439 | + | txt.Name = "_status" |
| 440 | - | Part2.CanCollide = false |
| 440 | + | txt.Size = UDim2.new(2, 0, 1.2, 0) |
| 441 | - | Part2.Size = Vector3.new(0.920000076, 0.110000037, 0.579999983) |
| 441 | + | txt.StudsOffset = Vector3.new(-9, 8, 0) |
| 442 | - | Part2.CFrame = CFrame.new(88.0500031, 18.9549999, 83.2799988, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 442 | + | local text = Instance.new("TextLabel", txt)
|
| 443 | - | Part2.BottomSurface = Enum.SurfaceType.Smooth |
| 443 | + | text.Size = UDim2.new(10, 0, 7, 0) |
| 444 | - | Part2.TopSurface = Enum.SurfaceType.Smooth |
| 444 | + | text.FontSize = "Size24" |
| 445 | - | Part2.Position = Vector3.new(88.0500031, 18.9549999, 83.2799988) |
| 445 | + | text.TextScaled = true |
| 446 | - | Part2.Color = Color3.new(0, 1, 0) |
| 446 | + | text.TextTransparency = 0 |
| 447 | text.BackgroundTransparency = 1 | |
| 448 | text.TextTransparency = 0 | |
| 449 | text.TextStrokeTransparency = 0 | |
| 450 | - | Part3.Size = Vector3.new(2.02000022, 0.590000093, 1.01999998) |
| 450 | + | text.Font = "Bodoni" |
| 451 | - | Part3.CFrame = CFrame.new(87.5, 17.6550007, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 451 | + | text.TextStrokeColor3 = Color3.new(0,0,0) |
| 452 | ||
| 453 | v=Instance.new("Part")
| |
| 454 | - | Part3.Position = Vector3.new(87.5, 17.6550007, 83.5) |
| 454 | + | v.Name = "ColorBrick" |
| 455 | - | Part3.Color = Color3.new(0.992157, 0.917647, 0.552941) |
| 455 | + | v.Parent=Player.Character |
| 456 | v.FormFactor="Symmetric" | |
| 457 | v.Anchored=true | |
| 458 | v.CanCollide=false | |
| 459 | - | Part4.Size = Vector3.new(2.02000022, 0.110000037, 0.439999968) |
| 459 | + | v.BottomSurface="Smooth" |
| 460 | - | Part4.CFrame = CFrame.new(87.5, 18.9549999, 83.7900009, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 460 | + | v.TopSurface="Smooth" |
| 461 | v.Size=Vector3.new(3,3,3) | |
| 462 | v.Transparency=1 | |
| 463 | - | Part4.Position = Vector3.new(87.5, 18.9549999, 83.7900009) |
| 463 | + | v.CFrame=Character.Torso.CFrame |
| 464 | - | Part4.Color = Color3.new(0, 1, 0) |
| 464 | + | v.BrickColor=BrickColor.new(CV) |
| 465 | v.Transparency=1 | |
| 466 | text.TextColor3 = Color3.new(0,0,0) | |
| 467 | v.Shape="Block" | |
| 468 | - | Part5.Size = Vector3.new(0.920000076, 0.110000037, 0.579999983) |
| 468 | + | text.Text = "MICHEAL THE REVIVED MURDER" |
| 469 | - | Part5.CFrame = CFrame.new(86.9499969, 18.9549999, 83.2799988, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 469 | + | local talksound = Instance.new("Sound",char.Torso)
|
| 470 | talksound.SoundId = "rbxassetid://455601633"talksound.Volume = 1 | |
| 471 | function swait(num) | |
| 472 | - | Part5.Position = Vector3.new(86.9499969, 18.9549999, 83.2799988) |
| 472 | + | if num==0 or num==nil then |
| 473 | - | Part5.Color = Color3.new(0, 1, 0) |
| 473 | + | game:service'RunService'.Stepped:wait(0) |
| 474 | - | Part6.Name = "asd" |
| 474 | + | |
| 475 | for i=0,num do | |
| 476 | - | Part6.Transparency = 1 |
| 476 | + | game:service'RunService'.Stepped:wait(0) |
| 477 | end | |
| 478 | end | |
| 479 | - | Part6.Size = Vector3.new(2, 2, 1) |
| 479 | + | |
| 480 | - | Part6.CFrame = CFrame.new(87.5, 18, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 480 | + | |
| 481 | function chatfunc(text) | |
| 482 | local chat = coroutine.wrap(function() | |
| 483 | - | Part6.Position = Vector3.new(87.5, 18, 83.5) |
| 483 | + | if char:FindFirstChild("TalkingBillBoard") ~= nil then
|
| 484 | char:FindFirstChild("TalkingBillBoard"):Destroy()
| |
| 485 | end | |
| 486 | local naeeym2 = Instance.new("BillboardGui",char)
| |
| 487 | - | Part7.Size = Vector3.new(2.02000022, 0.949999988, 1.01999998) |
| 487 | + | naeeym2.Size = UDim2.new(0,100,0,40) |
| 488 | - | Part7.CFrame = CFrame.new(87.5, 18.4249992, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 488 | + | naeeym2.StudsOffset = Vector3.new(0,3,0) |
| 489 | naeeym2.Adornee = char.Head | |
| 490 | naeeym2.Name = "TalkingBillBoard" | |
| 491 | - | Part7.Position = Vector3.new(87.5, 18.4249992, 83.5) |
| 491 | + | local tecks2 = Instance.new("TextLabel",naeeym2)
|
| 492 | - | Part7.Color = Color3.new(0, 1, 0) |
| 492 | + | tecks2.BackgroundTransparency = 1 |
| 493 | tecks2.BorderSizePixel = 0 | |
| 494 | - | newWeld(torso,Model0.asd) |
| 494 | + | tecks2.Text = "" |
| 495 | tecks2.Font = "Fantasy" | |
| 496 | tecks2.TextSize = 30 | |
| 497 | tecks2.TextStrokeTransparency = 0 | |
| 498 | - | Part2 = Instance.new("Part")
|
| 498 | + | tecks2.TextColor3 = Color3.new(200,0,0) |
| 499 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 500 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 501 | local tecks3 = Instance.new("TextLabel",naeeym2)
| |
| 502 | tecks3.BackgroundTransparency = 1 | |
| 503 | - | Part1.Size = Vector3.new(1.01999998, 1.91000009, 1.01999998) |
| 503 | + | tecks3.BorderSizePixel = 0 |
| 504 | - | Part1.CFrame = CFrame.new(49.5, 18.0999985, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 504 | + | tecks3.Text = "" |
| 505 | tecks3.Font = "Fantasy" | |
| 506 | tecks3.TextSize = 30 | |
| 507 | - | Part1.Position = Vector3.new(49.5, 18.0999985, 83.5) |
| 507 | + | tecks3.TextStrokeTransparency = 0 |
| 508 | - | Part1.Color = Color3.new(0, 1, 0) |
| 508 | + | tecks3.TextColor3 = Color3.new(200,0,0) |
| 509 | - | Part2.Name = "asd" |
| 509 | + | tecks3.TextStrokeColor3 = Color3.new(0,0,0) |
| 510 | - | Part2.Parent = Model0 |
| 510 | + | tecks3.Size = UDim2.new(1,0,0.5,0) |
| 511 | - | Part2.Transparency = 1 |
| 511 | + | for i = 1,string.len(text),1 do |
| 512 | - | Part2.Anchored = true |
| 512 | + | tecks2.Text = string.sub(text,1,i) |
| 513 | - | Part2.CanCollide = false |
| 513 | + | tecks3.Text = string.sub(text,1,i) |
| 514 | - | Part2.Size = Vector3.new(1, 2, 1) |
| 514 | + | talksound:Play() |
| 515 | - | Part2.CFrame = CFrame.new(49.5, 18.0450001, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 515 | + | wait(0.01) |
| 516 | - | Part2.BottomSurface = Enum.SurfaceType.Smooth |
| 516 | + | |
| 517 | - | Part2.TopSurface = Enum.SurfaceType.Smooth |
| 517 | + | wait(2) |
| 518 | - | Part2.Position = Vector3.new(49.5, 18.0450001, 83.5) |
| 518 | + | for i = 1, 50 do |
| 519 | swait() | |
| 520 | - | Model1=Model0:Clone() |
| 520 | + | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) |
| 521 | - | Model1.Parent=char |
| 521 | + | tecks2.Rotation = tecks2.Rotation - .8 |
| 522 | - | newWeld(larm,Model0.asd,0,0,0) |
| 522 | + | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 |
| 523 | - | newWeld(rarm,Model1.asd,0,0,0) |
| 523 | + | tecks2.TextTransparency = tecks2.TextTransparency + .04 |
| 524 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 525 | tecks3.Rotation = tecks2.Rotation + .8 | |
| 526 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 527 | - | Part2 = Instance.new("Part")
|
| 527 | + | tecks3.TextTransparency = tecks2.TextTransparency + .04 |
| 528 | end | |
| 529 | naeeym2:Destroy() | |
| 530 | end) | |
| 531 | chat() | |
| 532 | end | |
| 533 | - | Part1.Size = Vector3.new(1.03999996, 0.27000007, 1.03999996) |
| 533 | + | function onChatted(msg) |
| 534 | - | Part1.CFrame = CFrame.new(28, 17.125, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 534 | + | chatfunc(msg) |
| 535 | end | |
| 536 | ---------------------------------------------------------------------------- | |
| 537 | - | Part1.Position = Vector3.new(28, 17.125, 83.5) |
| 537 | + | |
| 538 | - | Part1.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 538 | + | |
| 539 | - | Part2.Parent = Model0 |
| 539 | + | |
| 540 | - | Part2.Anchored = true |
| 540 | + | |
| 541 | - | Part2.CanCollide = false |
| 541 | + | |
| 542 | - | Part2.Size = Vector3.new(1.01999998, 1.91000009, 1.01999998) |
| 542 | + | |
| 543 | - | Part2.CFrame = CFrame.new(28, 18.0550003, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 543 | + | |
| 544 | - | Part2.BottomSurface = Enum.SurfaceType.Smooth |
| 544 | + | |
| 545 | - | Part2.TopSurface = Enum.SurfaceType.Smooth |
| 545 | + | |
| 546 | - | Part2.Position = Vector3.new(28, 18.0550003, 83.5) |
| 546 | + | |
| 547 | - | Part2.Color = Color3.new(0.411765, 0.25098, 0.156863) |
| 547 | + | |
| 548 | - | Part3.Name = "asd" |
| 548 | + | |
| 549 | trail.Attachment1 = atch1 | |
| 550 | - | Part3.Transparency = 1 |
| 550 | + | |
| 551 | trail.Enabled = true | |
| 552 | trail.LightEmission = 1 | |
| 553 | - | Part3.Size = Vector3.new(1, 2, 1) |
| 553 | + | |
| 554 | - | Part3.CFrame = CFrame.new(28, 18, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 554 | + | |
| 555 | trail.Transparency = NumberSequence.new(0,1) | |
| 556 | ||
| 557 | - | Part3.Position = Vector3.new(28, 18, 83.5) |
| 557 | + | |
| 558 | kills = kills + 1 | |
| 559 | - | Model1=Model0:Clone() |
| 559 | + | |
| 560 | - | Model1.Parent=char |
| 560 | + | |
| 561 | - | newWeld(lleg,Model0.asd,0,0,0) |
| 561 | + | |
| 562 | - | newWeld(rleg,Model1.asd,0,0,0) |
| 562 | + | |
| 563 | clone.Name = "DED" | |
| 564 | model:Destroy() | |
| 565 | clone:FindFirstChildOfClass("Humanoid"):Destroy()
| |
| 566 | local emitters={}
| |
| 567 | for i,v in pairs(clone:GetChildren()) do | |
| 568 | if v:IsA("Accoutrement") then
| |
| 569 | v:Destroy() | |
| 570 | end | |
| 571 | if v:IsA("Part") then
| |
| 572 | v.Anchored = true | |
| 573 | v.CanCollide = false | |
| 574 | v.Transparency = 1 | |
| 575 | local emitter = Instance.new("ParticleEmitter",v)
| |
| 576 | emitter.LightEmission = 1 | |
| 577 | emitter.Transparency = NumberSequence.new(0,1) | |
| 578 | emitter.Size = NumberSequence.new(0,0.8) | |
| 579 | emitter.SpreadAngle = Vector2.new(360,360) | |
| 580 | emitter.Speed = NumberRange.new(0.5) | |
| 581 | emitter.Lifetime = NumberRange.new(0.75) | |
| 582 | emitter.Texture = "rbxassetid://744949545" | |
| 583 | emitter.Rate = 20 | |
| 584 | emitter.Color = ColorSequence.new(Color3.new(1,1,1)) | |
| 585 | emitter.LockedToPart = false | |
| 586 | table.insert(emitters,emitter) | |
| 587 | end | |
| 588 | end | |
| 589 | delay(1, function() | |
| 590 | sound(427025525,clone.Head.Position,10,1) | |
| 591 | for i,v in pairs(emitters) do | |
| 592 | v.Speed = NumberRange.new(4) | |
| 593 | v.Acceleration = Vector3.new(0,10,0) | |
| 594 | delay(0.5, function() | |
| 595 | v.Enabled = false | |
| 596 | debris:AddItem(clone,0.75) | |
| 597 | end) | |
| 598 | end | |
| 599 | end) | |
| 600 | end | |
| 601 | ||
| 602 | local alreadytouched = {}
| |
| 603 | HitBox.Touched:connect(function(ht) | |
| 604 | coroutine.resume(coroutine.create(function() | |
| 605 | local hit = ht.Parent | |
| 606 | if mode == "determination" and hit.Name ~= "DED" and attacking == true and checkIfNotPlayer(ht) and hit:FindFirstChildOfClass("Humanoid") and hit:FindFirstChildOfClass("Humanoid").Health > 0 then
| |
| 607 | local hurt = true | |
| 608 | for i,v in pairs(alreadytouched) do if v == hit then hurt = false end end | |
| 609 | if hurt == true then | |
| 610 | table.insert(alreadytouched,hit) | |
| 611 | sound(388826051,ht.Position,10,1) | |
| 612 | ded(hit) | |
| 613 | end | |
| 614 | end | |
| 615 | end)) | |
| 616 | end) | |
| 617 | ||
| 618 | function createknife() | |
| 619 | Model0 = Instance.new("Model")
| |
| 620 | Part1 = Instance.new("Part")
| |
| 621 | BlockMesh2 = Instance.new("BlockMesh")
| |
| 622 | Part3 = Instance.new("Part")
| |
| 623 | BlockMesh4 = Instance.new("BlockMesh")
| |
| 624 | Part5 = Instance.new("Part")
| |
| 625 | Part6 = Instance.new("Part")
| |
| 626 | BlockMesh7 = Instance.new("BlockMesh")
| |
| 627 | Part8 = Instance.new("Part")
| |
| 628 | Part9 = Instance.new("Part")
| |
| 629 | Part10 = Instance.new("Part")
| |
| 630 | SpecialMesh11 = Instance.new("SpecialMesh")
| |
| 631 | Part12 = Instance.new("Part")
| |
| 632 | Model0.Parent = char | |
| 633 | Part1.Parent = Model0 | |
| 634 | Part1.Anchored = true | |
| 635 | Part1.CanCollide = false | |
| 636 | Part1.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007) | |
| 637 | Part1.CFrame = CFrame.new(49.5, 20.7350044, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 638 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 639 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 640 | Part1.Position = Vector3.new(49.5, 20.7350044, 52.3199997) | |
| 641 | Part1.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
| 642 | BlockMesh2.Parent = Part1 | |
| 643 | BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
| 644 | BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
| 645 | Part3.Parent = Model0 | |
| 646 | Part3.Anchored = true | |
| 647 | Part3.CanCollide = false | |
| 648 | Part3.Size = Vector3.new(0.220000014, 0.0500000007, 0.0500000007) | |
| 649 | Part3.CFrame = CFrame.new(49.5, 20.6250038, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 650 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
| 651 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
| 652 | Part3.Position = Vector3.new(49.5, 20.6250038, 53.6199989) | |
| 653 | Part3.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
| 654 | BlockMesh4.Parent = Part3 | |
| 655 | BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
| 656 | BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
| 657 | Part5.Parent = Model0 | |
| 658 | Part5.Anchored = true | |
| 659 | Part5.CanCollide = false | |
| 660 | Part5.Size = Vector3.new(0.159999996, 0.400000006, 1.70000005) | |
| 661 | Part5.CFrame = CFrame.new(49.5, 20.5750046, 51.4300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 662 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
| 663 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
| 664 | Part5.Position = Vector3.new(49.5, 20.5750046, 51.4300003) | |
| 665 | Part5.Color = Color3.new(1, 0, 0) | |
| 666 | Part6.Parent = Model0 | |
| 667 | Part6.Anchored = true | |
| 668 | Part6.CanCollide = false | |
| 669 | Part6.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007) | |
| 670 | Part6.CFrame = CFrame.new(49.5, 20.4150047, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 671 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
| 672 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
| 673 | Part6.Position = Vector3.new(49.5, 20.4150047, 52.3199997) | |
| 674 | Part6.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
| 675 | BlockMesh7.Parent = Part6 | |
| 676 | BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
| 677 | BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
| 678 | Part8.Name = "asd" | |
| 679 | Part8.Parent = Model0 | |
| 680 | Part8.Anchored = true | |
| 681 | Part8.CanCollide = false | |
| 682 | Part8.Size = Vector3.new(0.200000003, 0.200000003, 1.30000007) | |
| 683 | Part8.CFrame = CFrame.new(49.5, 20.6250038, 52.9300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 684 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
| 685 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
| 686 | Part8.Position = Vector3.new(49.5, 20.6250038, 52.9300003) | |
| 687 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 688 | Part9.Parent = Model0 | |
| 689 | Part9.Anchored = true | |
| 690 | Part9.CanCollide = false | |
| 691 | Part9.Size = Vector3.new(0.200000003, 0.25999999, 0.100000039) | |
| 692 | Part9.CFrame = CFrame.new(49.5, 20.595005, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 693 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
| 694 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
| 695 | Part9.Position = Vector3.new(49.5, 20.595005, 53.6199989) | |
| 696 | Part9.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 697 | Part10.Parent = Model0 | |
| 698 | Part10.Rotation = Vector3.new(0, 0, 180) | |
| 699 | Part10.Anchored = true | |
| 700 | Part10.CanCollide = false | |
| 701 | Part10.Size = Vector3.new(0.159999996, 0.400000006, 0.800000012) | |
| 702 | Part10.CFrame = CFrame.new(49.5, 20.5750046, 50.1800003, -0.99999994, -8.74227766e-08, 3.82137093e-15, 8.74227695e-08, -1, 3.17865059e-08, 1.04250613e-15, 3.17865059e-08, 1) | |
| 703 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
| 704 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
| 705 | Part10.Position = Vector3.new(49.5, 20.5750046, 50.1800003) | |
| 706 | Part10.Color = Color3.new(1, 0, 0) | |
| 707 | SpecialMesh11.Parent = Part10 | |
| 708 | SpecialMesh11.MeshType = Enum.MeshType.Wedge | |
| 709 | Part12.Parent = Model0 | |
| 710 | Part12.Anchored = true | |
| 711 | Part12.CanCollide = false | |
| 712 | Part12.Size = Vector3.new(0.25999999, 0.460000008, 0.100000039) | |
| 713 | Part12.CFrame = CFrame.new(49.5, 20.5750046, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 714 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
| 715 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
| 716 | Part12.Position = Vector3.new(49.5, 20.5750046, 52.3199997) | |
| 717 | Part12.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 718 | weld(Model0) | |
| 719 | for i,v in pairs(Model0:GetChildren()) do | |
| 720 | if v:IsA("Part") and v.Color == Color3.new(1,0,0) then
| |
| 721 | v.Material = Enum.Material.Neon | |
| 722 | end | |
| 723 | end | |
| 724 | return Model0 | |
| 725 | end | |
| 726 | ||
| 727 | knife = createknife() | |
| 728 | newWeld(rarm,knife.asd,0,-1,0) | |
| 729 | ||
| 730 | ---------------------------------------------------------------------------------------- | |
| 731 | ||
| 732 | function createpistol() | |
| 733 | Model0 = Instance.new("Model")
| |
| 734 | Part1 = Instance.new("Part")
| |
| 735 | BlockMesh2 = Instance.new("BlockMesh")
| |
| 736 | Part3 = Instance.new("Part")
| |
| 737 | Part4 = Instance.new("Part")
| |
| 738 | Part5 = Instance.new("Part")
| |
| 739 | Part6 = Instance.new("Part")
| |
| 740 | Part7 = Instance.new("Part")
| |
| 741 | Part8 = Instance.new("Part")
| |
| 742 | Part9 = Instance.new("Part")
| |
| 743 | Part10 = Instance.new("Part")
| |
| 744 | Part11 = Instance.new("Part")
| |
| 745 | Part12 = Instance.new("Part")
| |
| 746 | Part13 = Instance.new("Part")
| |
| 747 | Part14 = Instance.new("Part")
| |
| 748 | Part15 = Instance.new("Part")
| |
| 749 | Part16 = Instance.new("Part")
| |
| 750 | Part17 = Instance.new("Part")
| |
| 751 | Part18 = Instance.new("Part")
| |
| 752 | Part19 = Instance.new("Part")
| |
| 753 | Model0.Name = "Pistol" | |
| 754 | Model0.Parent = char | |
| 755 | Part1.Name = "ShootPos" | |
| 756 | Part1.Parent = Model0 | |
| 757 | Part1.BrickColor = BrickColor.new("Really black")
| |
| 758 | Part1.Anchored = true | |
| 759 | Part1.CanCollide = false | |
| 760 | Part1.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007) | |
| 761 | Part1.CFrame = CFrame.new(-90, 10.5000019, 13.8957434, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 762 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 763 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 764 | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 765 | Part1.Position = Vector3.new(-90, 10.5000019, 13.8957434) | |
| 766 | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 767 | BlockMesh2.Parent = Part1 | |
| 768 | BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988) | |
| 769 | BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988) | |
| 770 | Part3.Parent = Model0 | |
| 771 | Part3.BrickColor = BrickColor.new("Pearl")
| |
| 772 | Part3.Anchored = true | |
| 773 | Part3.CanCollide = false | |
| 774 | Part3.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007) | |
| 775 | Part3.CFrame = CFrame.new(-90.0999985, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 776 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
| 777 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
| 778 | Part3.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 779 | Part3.Position = Vector3.new(-90.0999985, 10.3750019, 13.8757429) | |
| 780 | Part3.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 781 | Part4.Parent = Model0 | |
| 782 | Part4.BrickColor = BrickColor.new("Pearl")
| |
| 783 | Part4.Anchored = true | |
| 784 | Part4.CanCollide = false | |
| 785 | Part4.Size = Vector3.new(0.300000012, 0.349999994, 0.0500000007) | |
| 786 | Part4.CFrame = CFrame.new(-90, 10.2750025, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 787 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
| 788 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
| 789 | Part4.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 790 | Part4.Position = Vector3.new(-90, 10.2750025, 13.8757429) | |
| 791 | Part4.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 792 | Part5.Parent = Model0 | |
| 793 | Part5.BrickColor = BrickColor.new("Pearl")
| |
| 794 | Part5.Rotation = Vector3.new(15, 0, 0) | |
| 795 | Part5.Anchored = true | |
| 796 | Part5.CanCollide = false | |
| 797 | Part5.Size = Vector3.new(0.200000003, 0.25, 0.150000006) | |
| 798 | Part5.CFrame = CFrame.new(-90, 10.4379425, 15.8274469, 1, 0, 0, 0, 0.965925753, -0.258819252, 0, 0.258819252, 0.965925753) | |
| 799 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
| 800 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
| 801 | Part5.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 802 | Part5.Position = Vector3.new(-90, 10.4379425, 15.8274469) | |
| 803 | Part5.Orientation = Vector3.new(15, 0, 0) | |
| 804 | Part5.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 805 | Part6.Parent = Model0 | |
| 806 | Part6.BrickColor = BrickColor.new("Pearl")
| |
| 807 | Part6.Anchored = true | |
| 808 | Part6.CanCollide = false | |
| 809 | Part6.Size = Vector3.new(0.300000012, 0.550000012, 1.89999998) | |
| 810 | Part6.CFrame = CFrame.new(-90, 10.3750019, 14.8507433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 811 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
| 812 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
| 813 | Part6.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 814 | Part6.Position = Vector3.new(-90, 10.3750019, 14.8507433) | |
| 815 | Part6.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 816 | Part7.Parent = Model0 | |
| 817 | Part7.BrickColor = BrickColor.new("Pearl")
| |
| 818 | Part7.Anchored = true | |
| 819 | Part7.CanCollide = false | |
| 820 | Part7.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007) | |
| 821 | Part7.CFrame = CFrame.new(-90.0999985, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 822 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
| 823 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
| 824 | Part7.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 825 | Part7.Position = Vector3.new(-90.0999985, 10.6750021, 15.6257429) | |
| 826 | Part7.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 827 | Part8.Parent = Model0 | |
| 828 | Part8.BrickColor = BrickColor.new("Black")
| |
| 829 | Part8.Rotation = Vector3.new(-15, 0, 0) | |
| 830 | Part8.Anchored = true | |
| 831 | Part8.CanCollide = false | |
| 832 | Part8.Size = Vector3.new(0.220000014, 0.5, 0.209999993) | |
| 833 | Part8.CFrame = CFrame.new(-90, 9.71499538, 15.4898481, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872) | |
| 834 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
| 835 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
| 836 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 837 | Part8.Position = Vector3.new(-90, 9.71499538, 15.4898481) | |
| 838 | Part8.Orientation = Vector3.new(-15, 0, 0) | |
| 839 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 840 | Part9.Parent = Model0 | |
| 841 | Part9.BrickColor = BrickColor.new("Pearl")
| |
| 842 | Part9.Anchored = true | |
| 843 | Part9.CanCollide = false | |
| 844 | Part9.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007) | |
| 845 | Part9.CFrame = CFrame.new(-89.9000015, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 846 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
| 847 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
| 848 | Part9.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 849 | Part9.Position = Vector3.new(-89.9000015, 10.3750019, 13.8757429) | |
| 850 | Part9.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 851 | Part10.Parent = Model0 | |
| 852 | Part10.BrickColor = BrickColor.new("Pearl")
| |
| 853 | Part10.Anchored = true | |
| 854 | Part10.CanCollide = false | |
| 855 | Part10.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007) | |
| 856 | Part10.CFrame = CFrame.new(-89.9000015, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 857 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
| 858 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
| 859 | Part10.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 860 | Part10.Position = Vector3.new(-89.9000015, 10.6750021, 15.6257429) | |
| 861 | Part10.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 862 | Part11.Parent = Model0 | |
| 863 | Part11.BrickColor = BrickColor.new("Pearl")
| |
| 864 | Part11.Anchored = true | |
| 865 | Part11.CanCollide = false | |
| 866 | Part11.Size = Vector3.new(0.200000003, 0.150000006, 0.600000024) | |
| 867 | Part11.CFrame = CFrame.new(-90, 9.37500191, 15.6007433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 868 | Part11.BottomSurface = Enum.SurfaceType.Smooth | |
| 869 | Part11.TopSurface = Enum.SurfaceType.Smooth | |
| 870 | Part11.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 871 | Part11.Position = Vector3.new(-90, 9.37500191, 15.6007433) | |
| 872 | Part11.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 873 | Part12.Parent = Model0 | |
| 874 | Part12.BrickColor = BrickColor.new("Pearl")
| |
| 875 | Part12.Rotation = Vector3.new(-30, 0, 0) | |
| 876 | Part12.Anchored = true | |
| 877 | Part12.CanCollide = false | |
| 878 | Part12.Size = Vector3.new(0.100000001, 0.150000006, 0.0500000007) | |
| 879 | Part12.CFrame = CFrame.new(-90, 9.97165203, 15.1132431, 1, 0, 0, 0, 0.866025448, 0.5, 0, -0.5, 0.866025448) | |
| 880 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
| 881 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
| 882 | Part12.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 883 | Part12.Position = Vector3.new(-90, 9.97165203, 15.1132431) | |
| 884 | Part12.Orientation = Vector3.new(-30, 0, 0) | |
| 885 | Part12.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 886 | Part13.Parent = Model0 | |
| 887 | Part13.BrickColor = BrickColor.new("Pearl")
| |
| 888 | Part13.Anchored = true | |
| 889 | Part13.CanCollide = false | |
| 890 | Part13.Size = Vector3.new(0.300000012, 0.100000001, 0.0500000007) | |
| 891 | Part13.CFrame = CFrame.new(-90, 10.6000023, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 892 | Part13.BottomSurface = Enum.SurfaceType.Smooth | |
| 893 | Part13.TopSurface = Enum.SurfaceType.Smooth | |
| 894 | Part13.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 895 | Part13.Position = Vector3.new(-90, 10.6000023, 13.8757429) | |
| 896 | Part13.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 897 | Part14.Parent = Model0 | |
| 898 | Part14.BrickColor = BrickColor.new("Pearl")
| |
| 899 | Part14.Rotation = Vector3.new(-30, 0, 0) | |
| 900 | Part14.Anchored = true | |
| 901 | Part14.CanCollide = false | |
| 902 | Part14.Size = Vector3.new(0.200000003, 0.100000001, 0.25) | |
| 903 | Part14.CFrame = CFrame.new(-90, 10.5216522, 15.9065447, 1, 0, 0, 0, 0.866025329, 0.49999997, 0, -0.49999997, 0.866025329) | |
| 904 | Part14.BottomSurface = Enum.SurfaceType.Smooth | |
| 905 | Part14.TopSurface = Enum.SurfaceType.Smooth | |
| 906 | Part14.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 907 | Part14.Position = Vector3.new(-90, 10.5216522, 15.9065447) | |
| 908 | Part14.Orientation = Vector3.new(-30, 0, 0) | |
| 909 | Part14.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 910 | Part15.Parent = Model0 | |
| 911 | Part15.BrickColor = BrickColor.new("White")
| |
| 912 | Part15.Rotation = Vector3.new(-105, 0, 0) | |
| 913 | Part15.Anchored = true | |
| 914 | Part15.CanCollide = false | |
| 915 | Part15.Size = Vector3.new(0.100000001, 0.200000003, 0.0500000007) | |
| 916 | Part15.CFrame = CFrame.new(-90, 9.92812252, 15.2373915, 1, 0, 0, 0, -0.258819371, 0.965925813, 0, -0.965925813, -0.258819371) | |
| 917 | Part15.BottomSurface = Enum.SurfaceType.Smooth | |
| 918 | Part15.TopSurface = Enum.SurfaceType.Smooth | |
| 919 | Part15.Color = Color3.new(0.94902, 0.952941, 0.952941) | |
| 920 | Part15.Position = Vector3.new(-90, 9.92812252, 15.2373915) | |
| 921 | Part15.Orientation = Vector3.new(-75, 180, 180) | |
| 922 | Part15.Color = Color3.new(0.94902, 0.952941, 0.952941) | |
| 923 | Part16.Name = "asd" | |
| 924 | Part16.Parent = Model0 | |
| 925 | Part16.BrickColor = BrickColor.new("Pearl")
| |
| 926 | Part16.Rotation = Vector3.new(-15, 0, 0) | |
| 927 | Part16.Anchored = true | |
| 928 | Part16.CanCollide = false | |
| 929 | Part16.Size = Vector3.new(0.200000003, 1.14999998, 0.400000006) | |
| 930 | Part16.CFrame = CFrame.new(-90, 9.93709087, 15.5425692, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872) | |
| 931 | Part16.BottomSurface = Enum.SurfaceType.Smooth | |
| 932 | Part16.TopSurface = Enum.SurfaceType.Smooth | |
| 933 | Part16.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 934 | Part16.Position = Vector3.new(-90, 9.93709087, 15.5425692) | |
| 935 | Part16.Orientation = Vector3.new(-15, 0, 0) | |
| 936 | Part16.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 937 | Part17.Parent = Model0 | |
| 938 | Part17.BrickColor = BrickColor.new("Pearl")
| |
| 939 | Part17.Anchored = true | |
| 940 | Part17.CanCollide = false | |
| 941 | Part17.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007) | |
| 942 | Part17.CFrame = CFrame.new(-90, 10.0500021, 15.0757437, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 943 | Part17.BottomSurface = Enum.SurfaceType.Smooth | |
| 944 | Part17.TopSurface = Enum.SurfaceType.Smooth | |
| 945 | Part17.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 946 | Part17.Position = Vector3.new(-90, 10.0500021, 15.0757437) | |
| 947 | Part17.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 948 | Part18.Parent = Model0 | |
| 949 | Part18.BrickColor = BrickColor.new("Pearl")
| |
| 950 | Part18.Anchored = true | |
| 951 | Part18.CanCollide = false | |
| 952 | Part18.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007) | |
| 953 | Part18.CFrame = CFrame.new(-90, 10.6750021, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 954 | Part18.BottomSurface = Enum.SurfaceType.Smooth | |
| 955 | Part18.TopSurface = Enum.SurfaceType.Smooth | |
| 956 | Part18.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 957 | Part18.Position = Vector3.new(-90, 10.6750021, 13.8757429) | |
| 958 | Part18.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 959 | Part19.Parent = Model0 | |
| 960 | Part19.BrickColor = BrickColor.new("Pearl")
| |
| 961 | Part19.Anchored = true | |
| 962 | Part19.CanCollide = false | |
| 963 | Part19.Size = Vector3.new(0.400000006, 0.200000003, 1.05000007) | |
| 964 | Part19.CFrame = CFrame.new(-90, 10.1500015, 14.4757433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 965 | Part19.BottomSurface = Enum.SurfaceType.Smooth | |
| 966 | Part19.TopSurface = Enum.SurfaceType.Smooth | |
| 967 | Part19.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 968 | Part19.Position = Vector3.new(-90, 10.1500015, 14.4757433) | |
| 969 | Part19.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 970 | for i,v in pairs(Model0:GetChildren()) do | |
| 971 | if v:IsA("Part") then
| |
| 972 | v.Color = Color3.new(1,1,0) | |
| 973 | v.Material = Enum.Material.Neon | |
| 974 | v.Transparency = 0 | |
| 975 | v.CanCollide = false | |
| 976 | end | |
| 977 | end | |
| 978 | weld(Model0) | |
| 979 | return Model0 | |
| 980 | end | |
| 981 | ||
| 982 | mode = "determination" | |
| 983 | function justice() | |
| 984 | mode = "justice" | |
| 985 | for i=1,5 do rs:wait() | |
| 986 | local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000) | |
| 987 | Effect(Enum.MeshType.Brick,Vector3.new(1,1,1),0,Enum.Material.Neon,Color3.new(1,1,0),rarm.RightGripAttachment.WorldPosition+(asd*1),asd*360,Vector3.new(0.5,0.5,0.5),asd*1,0.1,0.0005) | |
| 988 | end | |
| 989 | knife:Destroy() | |
| 990 | pistol = createpistol() | |
| 991 | newWeld(rarm,pistol.asd,0,-1,0) | |
| 992 | pistol.asd.Weld.C1 = CFrame.Angles(math.rad(110),0,0) | |
| 993 | end | |
| 994 | ||
| 995 | function determination() | |
| 996 | mode = "determination" | |
| 997 | for i=1,5 do rs:wait() | |
| 998 | local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000) | |
| 999 | Effect(Enum.MeshType.Brick,Vector3.new(1,1,1),0,Enum.Material.Neon,Color3.new(1,0,0),rarm.RightGripAttachment.WorldPosition+(asd*1),asd*360,Vector3.new(0.5,0.5,0.5),asd*1,0.1,0.0005) | |
| 1000 | end | |
| 1001 | pistol:Destroy() | |
| 1002 | knife = createknife() | |
| 1003 | newWeld(rarm,knife.asd,0,-1,0) | |
| 1004 | end | |
| 1005 | ||
| 1006 | debounce = false | |
| 1007 | mouse.KeyDown:connect(function(key) | |
| 1008 | if debounce == false then | |
| 1009 | debounce = true | |
| 1010 | if key == "e" then | |
| 1011 | sound(462606062,root.Position,10,1) | |
| 1012 | if mode == "determination" then | |
| 1013 | justice() | |
| 1014 | elseif mode == "justice" then | |
| 1015 | determination() | |
| 1016 | end | |
| 1017 | end | |
| 1018 | delay(0.3,function() debounce = false end) | |
| 1019 | end | |
| 1020 | end) | |
| 1021 | ||
| 1022 | ---------------------------------------------------------------------------------------- | |
| 1023 | ||
| 1024 | function slash() | |
| 1025 | local spd = 0.2 | |
| 1026 | for i=1,15 do rs:wait() | |
| 1027 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
| 1028 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(-30),math.rad(0)), spd) | |
| 1029 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), spd) | |
| 1030 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), spd) | |
| 1031 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(-50),math.rad(10)), spd) | |
| 1032 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(-10)), spd) | |
| 1033 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
| 1034 | end | |
| 1035 | sound(357417055,root.Position,10,1) | |
| 1036 | attacking = true | |
| 1037 | local spd = 0.4 | |
| 1038 | for i=1,5 do rs:wait() | |
| 1039 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
| 1040 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(0)), spd) | |
| 1041 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), spd) | |
| 1042 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)), spd) | |
| 1043 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(-20)), spd) | |
| 1044 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
| 1045 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-80),math.rad(20)), spd) | |
| 1046 | end | |
| 1047 | end | |
| 1048 | ||
| 1049 | mouse.Button1Down:connect(function() | |
| 1050 | if debounce == false and mode == "determination" then | |
| 1051 | alreadytouched = {}
| |
| 1052 | noidle = true | |
| 1053 | debounce = true | |
| 1054 | slash() | |
| 1055 | attacking = false | |
| 1056 | noidle = false | |
| 1057 | delay(0.05,function() debounce = false end) | |
| 1058 | end | |
| 1059 | end) | |
| 1060 | ||
| 1061 | ----------------------------- | |
| 1062 | local jumped = false | |
| 1063 | function boom() | |
| 1064 | freeze = true | |
| 1065 | sound(446961725,root.Position,10,1) | |
| 1066 | local bg = Instance.new("BodyGyro",root)
| |
| 1067 | bg.Name = "lolnochara" | |
| 1068 | bg.P = 10000 | |
| 1069 | bg.D = 100 | |
| 1070 | bg.MaxTorque = Vector3.new(9e9,9e9,9e9) | |
| 1071 | if jumped == false then | |
| 1072 | root.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
| 1073 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
| 1074 | else | |
| 1075 | root.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
| 1076 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
| 1077 | end | |
| 1078 | ||
| 1079 | local spd = 0.2 | |
| 1080 | for i=1,20 do rs:wait() | |
| 1081 | if jumped == false then | |
| 1082 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
| 1083 | else | |
| 1084 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
| 1085 | end | |
| 1086 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
| 1087 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
| 1088 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
| 1089 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(45),math.rad(0),math.rad(90)), spd) | |
| 1090 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
| 1091 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(-5),math.rad(0)), spd) | |
| 1092 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-20),math.rad(0)), spd) | |
| 1093 | end | |
| 1094 | ||
| 1095 | bg:Destroy() | |
| 1096 | ||
| 1097 | sound(470245800,root.Position,10,1) | |
| 1098 | ||
| 1099 | local Part0 = Instance.new("Part",DebrisModel)
| |
| 1100 | Part0.Name = "Bullet" | |
| 1101 | Part0.Material = Enum.Material.Neon | |
| 1102 | Part0.Color = Color3.new(1,1,0) | |
| 1103 | Part0.Anchored = true | |
| 1104 | local mesh = Instance.new("SpecialMesh",Part0)
| |
| 1105 | mesh.MeshType = Enum.MeshType.Brick | |
| 1106 | Part0.CanCollide = false | |
| 1107 | local Position = rarm.Position | |
| 1108 | local Target = mouse.Hit.p | |
| 1109 | local direction = Target - Position | |
| 1110 | local direction = computeDirection(direction) | |
| 1111 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
| 1112 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
| 1113 | Part0.Size = Vector3.new(5,1,5) | |
| 1114 | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude+5,1) | |
| 1115 | local pos = Position + (direction * (mesh.Scale.Y/2)) | |
| 1116 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
| 1117 | local loop = nil | |
| 1118 | local i = 0 | |
| 1119 | rs:connect(function() | |
| 1120 | local lole = (i/10) | |
| 1121 | mesh.Scale = Vector3.new(lole,mesh.Scale.Y,lole) | |
| 1122 | Part0.Transparency = Part0.Transparency + 0.1 | |
| 1123 | i = i + 1 | |
| 1124 | if Part0.Transparency >= 1 then | |
| 1125 | Part0:Destroy() | |
| 1126 | end | |
| 1127 | end) | |
| 1128 | ||
| 1129 | if part and part.Parent:FindFirstChildOfClass("Humanoid") and checkIfNotPlayer(part) == true then
| |
| 1130 | coroutine.resume(coroutine.create(function() | |
| 1131 | sound(388826051,part.Position,10,1) | |
| 1132 | ded(part.Parent) | |
| 1133 | end)) | |
| 1134 | end | |
| 1135 | ||
| 1136 | local spd = 0.5 | |
| 1137 | for i=1,10 do rs:wait() | |
| 1138 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
| 1139 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
| 1140 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
| 1141 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(45),math.rad(40),math.rad(90)), spd) | |
| 1142 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
| 1143 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(-5),math.rad(0)), spd) | |
| 1144 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-20),math.rad(0)), spd) | |
| 1145 | end | |
| 1146 | ||
| 1147 | freeze = false | |
| 1148 | ||
| 1149 | end | |
| 1150 | ||
| 1151 | mouse.Button1Down:connect(function() | |
| 1152 | if debounce == false and mode == "justice" then | |
| 1153 | alreadytouched = {}
| |
| 1154 | noidle = true | |
| 1155 | debounce = true | |
| 1156 | boom() | |
| 1157 | attacking = false | |
| 1158 | noidle = false | |
| 1159 | delay(0.05,function() debounce = false end) | |
| 1160 | end | |
| 1161 | end) | |
| 1162 | ||
| 1163 | ---------------------------------------------------------------------------------------- | |
| 1164 | velocityYFall=0 | |
| 1165 | velocityYFall2=0 | |
| 1166 | velocityYFall3=0 | |
| 1167 | velocityYFall4=0 | |
| 1168 | neckrotY=0 | |
| 1169 | neckrotY2=0 | |
| 1170 | torsorotY=0 | |
| 1171 | torsorotY2=0 | |
| 1172 | torsoY=0 | |
| 1173 | torsoY2=0 | |
| 1174 | colored = 0 | |
| 1175 | sine = 0 | |
| 1176 | change=0.4 | |
| 1177 | movement=5 | |
| 1178 | timeranim=0 | |
| 1179 | running = false | |
| 1180 | glitched = false | |
| 1181 | backup = hed.Weld.C1 | |
| 1182 | glitchedC1 = hed.Weld.C1 | |
| 1183 | ||
| 1184 | mouse.KeyDown:connect(function(key) | |
| 1185 | key = string.lower(key) | |
| 1186 | if string.byte(key) == 48 then | |
| 1187 | running = true | |
| 1188 | local keyup = mouse.KeyUp:connect(function(key) | |
| 1189 | if string.byte(key) == 48 then | |
| 1190 | running = false | |
| 1191 | end | |
| 1192 | end) | |
| 1193 | repeat rs:wait() until running == false | |
| 1194 | keyup:disconnect() | |
| 1195 | end | |
| 1196 | end) | |
| 1197 | ||
| 1198 | icolor=1 | |
| 1199 | imode=false | |
| 1200 | ||
| 1201 | didjump = false | |
| 1202 | jumppower = 0 | |
| 1203 | freeze = false | |
| 1204 | debounceimpact = false | |
| 1205 | ||
| 1206 | function jumpimpact() | |
| 1207 | if debounceimpact == false then | |
| 1208 | debounceimpact = true | |
| 1209 | if jumppower < -150 then jumppower = -150 end | |
| 1210 | shake(-jumppower/5) | |
| 1211 | for i=1,-jumppower/20 do rs:wait() | |
| 1212 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.05) | |
| 1213 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (jumppower/20)*size-hum.HipHeight, 0) * CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.05) | |
| 1214 | end | |
| 1215 | debounceimpact = false | |
| 1216 | end | |
| 1217 | end | |
| 1218 | ||
| 1219 | local sond = nil | |
| 1220 | rs:connect(function() | |
| 1221 | ||
| 1222 | if not torso:FindFirstChild("STATICSOUND") then
| |
| 1223 | sond=Instance.new("Sound",torso)
| |
| 1224 | sond.Name = "STATICSOUND" | |
| 1225 | sond.SoundId = "rbxassetid://223103466" | |
| 1226 | sond.Looped = true | |
| 1227 | sond:Play() | |
| 1228 | end | |
| 1229 | ||
| 1230 | if icolor > 1 then | |
| 1231 | imode = false | |
| 1232 | elseif icolor < 0 then | |
| 1233 | imode = true | |
| 1234 | end | |
| 1235 | ||
| 1236 | if imode == true then | |
| 1237 | icolor = icolor + 0.01 | |
| 1238 | else | |
| 1239 | icolor = icolor - 0.01 | |
| 1240 | end | |
| 1241 | ||
| 1242 | for i,v in pairs(emitters) do | |
| 1243 | v.Acceleration = root.CFrame.upVector*(666/100) | |
| 1244 | end | |
| 1245 | ||
| 1246 | if p.Character.Parent == nil then | |
| 1247 | local model = Instance.new("Model")
| |
| 1248 | model.Name = p.Name | |
| 1249 | p.Character = model | |
| 1250 | for i,v in pairs(char:GetChildren()) do | |
| 1251 | v.Parent = p.Character | |
| 1252 | end | |
| 1253 | end | |
| 1254 | ||
| 1255 | char = p.Character | |
| 1256 | if p.Character.Parent ~= workspace then | |
| 1257 | p.Character.Parent = workspace | |
| 1258 | end | |
| 1259 | for i,v in pairs(char:GetChildren()) do | |
| 1260 | if v:IsA("Accoutrement") then
| |
| 1261 | if v.Handle:FindFirstChild("Mesh") then
| |
| 1262 | v.Handle:FindFirstChild("Mesh").Offset = Vector3.new()
| |
| 1263 | v.Handle.Transparency = 0 | |
| 1264 | end | |
| 1265 | elseif v:IsA("BasePart") then
| |
| 1266 | v.Anchored = false | |
| 1267 | if v:FindFirstChildOfClass("BodyPosition") then
| |
| 1268 | v:FindFirstChildOfClass("BodyPosition"):Destroy()
| |
| 1269 | end | |
| 1270 | if v:FindFirstChildOfClass("BodyVelocity") then
| |
| 1271 | v:FindFirstChildOfClass("BodyVelocity"):Destroy()
| |
| 1272 | end | |
| 1273 | if v:FindFirstChildOfClass("BodyGyro") and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then
| |
| 1274 | v:FindFirstChildOfClass("BodyGyro"):Destroy()
| |
| 1275 | end | |
| 1276 | if v:FindFirstChild("Mesh") then
| |
| 1277 | v:FindFirstChild("Mesh").Offset = Vector3.new()
| |
| 1278 | end | |
| 1279 | if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD") then | |
| 1280 | local force = Instance.new("Part",DebrisModel)
| |
| 1281 | force.Name = v.Name.."FORCEFIELD" | |
| 1282 | force.Size = v.Size+(Vector3.new(1,1,1)*0.2) | |
| 1283 | force.CanCollide = false | |
| 1284 | force.Transparency = 1 | |
| 1285 | newWeld(v,force,0,0,0) | |
| 1286 | else | |
| 1287 | if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"):FindFirstChildOfClass("Weld") then
| |
| 1288 | newWeld(v,DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"),0,0,0) | |
| 1289 | end | |
| 1290 | end | |
| 1291 | if v.Name ~= "HumanoidRootPart" then | |
| 1292 | v.Transparency = 0 | |
| 1293 | else | |
| 1294 | v.Transparency = 1 | |
| 1295 | end | |
| 1296 | end | |
| 1297 | end | |
| 1298 | ||
| 1299 | if mode == "determination" then | |
| 1300 | trail.Enabled = true | |
| 1301 | else | |
| 1302 | trail.Enabled = false | |
| 1303 | end | |
| 1304 | ||
| 1305 | if freeze == false then | |
| 1306 | if running == false then | |
| 1307 | hum.WalkSpeed = 12*size | |
| 1308 | change=0.4 | |
| 1309 | movement=5 | |
| 1310 | else | |
| 1311 | hum.WalkSpeed = (666/10)*size | |
| 1312 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5*size then | |
| 1313 | change=1 | |
| 1314 | else | |
| 1315 | change=0.4 | |
| 1316 | end | |
| 1317 | movement=15 | |
| 1318 | end | |
| 1319 | else | |
| 1320 | hum.WalkSpeed = 1 | |
| 1321 | change=0.4 | |
| 1322 | movement=5 | |
| 1323 | end | |
| 1324 | ||
| 1325 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 150 then | |
| 1326 | velocityYFall = root.Velocity.Y/1.5 | |
| 1327 | else | |
| 1328 | if -root.Velocity.Y/1.5 < -5 then | |
| 1329 | velocityYFall = 5 | |
| 1330 | elseif -root.Velocity.Y/1.5 > 150 then | |
| 1331 | velocityYFall = -150 | |
| 1332 | end | |
| 1333 | end | |
| 1334 | ||
| 1335 | if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then | |
| 1336 | velocityYFall2 = root.Velocity.Y/180 | |
| 1337 | else | |
| 1338 | if -root.Velocity.Y/180 < 0 then | |
| 1339 | velocityYFall2 = 0 | |
| 1340 | elseif -root.Velocity.Y/180 > 1.2 then | |
| 1341 | velocityYFall2 = -1.2 | |
| 1342 | end | |
| 1343 | end | |
| 1344 | ||
| 1345 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then | |
| 1346 | velocityYFall3 = root.Velocity.Y/1.5 | |
| 1347 | else | |
| 1348 | if -root.Velocity.Y/1.5 < -5 then | |
| 1349 | velocityYFall3 = 5 | |
| 1350 | elseif -root.Velocity.Y/1.5 > 50 then | |
| 1351 | velocityYFall3 = -50 | |
| 1352 | end | |
| 1353 | end | |
| 1354 | ||
| 1355 | if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then | |
| 1356 | velocityYFall4 = root.Velocity.Y/1.5 | |
| 1357 | else | |
| 1358 | if -root.Velocity.Y/180 < -5 then | |
| 1359 | velocityYFall4 = 5 | |
| 1360 | elseif -root.Velocity.Y/180 > 50 then | |
| 1361 | velocityYFall4 = -50 | |
| 1362 | end | |
| 1363 | end | |
| 1364 | ||
| 1365 | if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then | |
| 1366 | neckrotY = root.RotVelocity.Y/6 | |
| 1367 | else | |
| 1368 | if root.RotVelocity.Y/6 < -1 then | |
| 1369 | neckrotY = -1 | |
| 1370 | elseif root.RotVelocity.Y/6 > 1 then | |
| 1371 | neckrotY = 1 | |
| 1372 | end | |
| 1373 | end | |
| 1374 | ||
| 1375 | if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then | |
| 1376 | neckrotY2 = root.RotVelocity.Y/8 | |
| 1377 | else | |
| 1378 | if root.RotVelocity.Y/8 < -0.6 then | |
| 1379 | neckrotY2 = -0.6 | |
| 1380 | elseif root.RotVelocity.Y/8 > 0.6 then | |
| 1381 | neckrotY2 = 0.6 | |
| 1382 | end | |
| 1383 | end | |
| 1384 | ||
| 1385 | if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then | |
| 1386 | torsorotY = root.RotVelocity.Y/6 | |
| 1387 | else | |
| 1388 | if root.RotVelocity.Y/6 < -0.2 then | |
| 1389 | torsorotY = -0.2 | |
| 1390 | elseif root.RotVelocity.Y/6 > 0.2 then | |
| 1391 | torsorotY = 0.2 | |
| 1392 | end | |
| 1393 | end | |
| 1394 | ||
| 1395 | if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then | |
| 1396 | torsorotY2 = root.RotVelocity.Y/8 | |
| 1397 | else | |
| 1398 | if root.RotVelocity.Y/8 < -0.2 then | |
| 1399 | torsorotY2 = -0.2 | |
| 1400 | elseif root.RotVelocity.Y/8 > 0.2 then | |
| 1401 | torsorotY2 = 0.2 | |
| 1402 | end | |
| 1403 | end | |
| 1404 | ||
| 1405 | torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20 | |
| 1406 | torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36 | |
| 1407 | ||
| 1408 | local ray1 = Ray.new(root.Position+Vector3.new(size,0,0),Vector3.new(0, -4*size, 0)) | |
| 1409 | local part1, endPoint = workspace:FindPartOnRay(ray1, char) | |
| 1410 | local ray2 = Ray.new(root.Position-Vector3.new(size,0,0),Vector3.new(0, -4*size, 0)) | |
| 1411 | local part2, endPoint = workspace:FindPartOnRay(ray2, char) | |
| 1412 | local ray3 = Ray.new(root.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0)) | |
| 1413 | local part3, endPoint = workspace:FindPartOnRay(ray3, char) | |
| 1414 | local ray4 = Ray.new(root.Position-Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0)) | |
| 1415 | local part4, endPoint = workspace:FindPartOnRay(ray4, char) | |
| 1416 | local ray = Ray.new(root.Position,Vector3.new(0, -6, 0)) | |
| 1417 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
| 1418 | ||
| 1419 | if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end | |
| 1420 | ||
| 1421 | local rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0)) | |
| 1422 | local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char) | |
| 1423 | ||
| 1424 | local llegray = Ray.new(lleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0)) | |
| 1425 | local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char) | |
| 1426 | ||
| 1427 | if hum.Health > 0 and noidle == false then | |
| 1428 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then | |
| 1429 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new((change/5)*math.sin(sine/4), 1.5, -.2) * CFrame.Angles(math.rad((torso.Velocity*Vector3.new(1, 0, 1)).magnitude/35),torsorotY, math.rad(0)+torsorotY), 0.4) | |
| 1430 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles((change/10)*math.cos(sine/2)+0.1,-(change/10)*math.cos(sine/4)-(torsorotY/5),(change/2)*math.sin(sine/4)), 0.1) | |
| 1431 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/40)*math.cos(sine/4)/3,(movement/150)+(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
| 1432 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/40)*math.cos(sine/4)/3,(movement/150)-(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
| 1433 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.05+(change/2)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-(movement/20)*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1) | |
| 1434 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,(-0.85-(movement/15)*math.cos(sine/4)/2),-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
| 1435 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,(-0.85+(movement/15)*math.cos(sine/4)/2),-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
| 1436 | elseif jumped == true then | |
| 1437 | didjump = true | |
| 1438 | jumppower = root.Velocity.Y | |
| 1439 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4) | |
| 1440 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-velocityYFall3/5),0,0), 0.1) | |
| 1441 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-velocityYFall3/70,0)*CFrame.Angles(math.rad(-velocityYFall3/10),math.rad(0),math.rad(velocityYFall)), 0.2) | |
| 1442 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-velocityYFall3/70,0)*CFrame.Angles(math.rad(-velocityYFall3/10),math.rad(0),math.rad(-velocityYFall)), 0.2) | |
| 1443 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(velocityYFall3/10),math.rad(0), math.rad(0)), 0.1) | |
| 1444 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925,0)*CFrame.Angles(math.rad(-35),math.rad(0),math.rad(-2)), 0.2) | |
| 1445 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0,-0.8)*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(2)), 0.2) | |
| 1446 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5*size then | |
| 1447 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5*size, -.1*size) * CFrame.Angles(math.rad((torso.Velocity*Vector3.new(1, 0, 1)).magnitude/35),0, 0), 0.4) | |
| 1448 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0.05*math.cos(sine/16)+0.15,0.05*math.cos(sine/32),0.01*math.cos(sine/32)), 0.1) | |
| 1449 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5*size,0.55*size-(0.1*size)*math.cos(sine/16)/3,-0.05-0.1*size*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.cos(sine/16)),math.rad(-5-5*math.cos(sine/16)),math.rad(-6+2*math.cos(sine/16))), 0.2) | |
| 1450 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5*size,0.55*size-(0.1*size)*math.cos(sine/16)/3,-0.05-0.1*size*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.cos(sine/16)),math.rad(5+5*math.cos(sine/16)),math.rad(6-2*math.cos(sine/16))), 0.2) | |
| 1451 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1*size-(0.1*size)*math.cos(sine/16)-hum.HipHeight, 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1) | |
| 1452 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5*size,0*size+(0.1*size)*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+2*math.cos(sine/16)),math.rad(10+2*math.cos(sine/16)),math.rad(-5+1*math.cos(sine/32))), 0.2) | |
| 1453 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5*size,0*size+(0.1*size)*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+2*math.cos(sine/16)),math.rad(-10-2*math.cos(sine/16)),math.rad(5+1*math.cos(sine/32))), 0.2) | |
| 1454 | end | |
| 1455 | end | |
| 1456 | if didjump == true and jumped == false and jumppower < 0 then | |
| 1457 | didjump = false | |
| 1458 | jumpimpact() | |
| 1459 | end | |
| 1460 | ||
| 1461 | local chance = math.random(0,10000)/100 | |
| 1462 | if chance <= 5 + (kills/2) then | |
| 1463 | if glitched == false then | |
| 1464 | backup = hed.Weld.C1 | |
| 1465 | end | |
| 1466 | if torso:FindFirstChild("MusicRuin") then
| |
| 1467 | equalizer.HighGain = 0 | |
| 1468 | equalizer.MidGain = -20 | |
| 1469 | equalizer.LowGain = -80 | |
| 1470 | end | |
| 1471 | hed.Weld.C1 = glitchedC1 | |
| 1472 | local glitch_color = Color3.fromHSV(math.random(0,1000)/1000,1,1) | |
| 1473 | hed.Color = glitch_color | |
| 1474 | torso.Color = glitch_color | |
| 1475 | rarm.Color = glitch_color | |
| 1476 | larm.Color = glitch_color | |
| 1477 | rleg.Color = glitch_color | |
| 1478 | lleg.Color = glitch_color | |
| 1479 | shake(5) | |
| 1480 | glitched = true | |
| 1481 | hed.face.Texture = "rbxassetid://1471407701" | |
| 1482 | sond:Resume() | |
| 1483 | else | |
| 1484 | if glitched == true then | |
| 1485 | glitched = false | |
| 1486 | hed.Weld.C1 = backup | |
| 1487 | glitchedC1 = backup*CFrame.Angles(math.rad(math.random(-40,40)),math.rad(math.random(-40,40)),math.rad(math.random(-20,20))) | |
| 1488 | end | |
| 1489 | if torso:FindFirstChild("MusicRuin") then
| |
| 1490 | equalizer.HighGain = 0 | |
| 1491 | equalizer.MidGain = 0 | |
| 1492 | equalizer.LowGain = 0 | |
| 1493 | end | |
| 1494 | hed.BrickColor = skin_color | |
| 1495 | torso.BrickColor = skin_color | |
| 1496 | rarm.BrickColor = skin_color | |
| 1497 | larm.BrickColor = skin_color | |
| 1498 | rleg.BrickColor = skin_color | |
| 1499 | lleg.BrickColor = skin_color | |
| 1500 | hed.face.Texture = "rbxassetid://176217464" | |
| 1501 | sond:Pause() | |
| 1502 | end | |
| 1503 | ||
| 1504 | timeposition = soundz.TimePosition | |
| 1505 | sine = sine + change | |
| 1506 | hum.Health = math.huge | |
| 1507 | hum.MaxHealth = math.huge | |
| 1508 | end) |