SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
| |
| 2 | print("FE Compatibility: by WaverlyCole & Mokiros")
| |
| 3 | InternalData = {}
| |
| 4 | do | |
| 5 | script.Parent = owner.Character | |
| 6 | local Event = Instance.new("RemoteEvent")
| |
| 7 | Event.Name = "UserInput" | |
| 8 | local function NewFakeEvent() | |
| 9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
| |
| 10 | return Fake | |
| 11 | end | |
| 12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 17 | local function TriggerEvent(self,Event,...) | |
| 18 | local Trigger = Mouse[Event] | |
| 19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
| 20 | Trigger.Function(...) | |
| 21 | end | |
| 22 | end | |
| 23 | Mouse.TrigEvent = TriggerEvent | |
| 24 | UserInputService.TrigEvent = TriggerEvent | |
| 25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 26 | if FiredBy.Name ~= owner.Name then end | |
| 27 | if Input.MouseEvent then | |
| 28 | Mouse.Target = Input.Target | |
| 29 | Mouse.Hit = Input.Hit | |
| 30 | else | |
| 31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
| 34 | end | |
| 35 | for _,Action in pairs(ContextActionService.Actions) do | |
| 36 | for _,Key in pairs(Action.Keys) do | |
| 37 | if Key==Input.KeyCode then | |
| 38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
| 39 | end | |
| 40 | end | |
| 41 | end | |
| 42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 44 | end | |
| 45 | end) | |
| 46 | InternalData["Mouse"] = Mouse | |
| 47 | InternalData["ContextActionService"] = ContextActionService | |
| 48 | InternalData["UserInputService"] = UserInputService | |
| 49 | Event.Parent = NLS([[ | |
| 50 | local Player = owner | |
| 51 | local Event = script:WaitForChild("UserInput")
| |
| 52 | local UserInputService = game:GetService("UserInputService")
| |
| 53 | local Mouse = Player:GetMouse() | |
| 54 | local Input = function(Input,gameProcessedEvent) | |
| 55 | if gameProcessedEvent then return end | |
| 56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 57 | end | |
| 58 | UserInputService.InputBegan:Connect(Input) | |
| 59 | UserInputService.InputEnded:Connect(Input) | |
| 60 | local Hit,Target | |
| 61 | while wait(1/30) do | |
| 62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 63 | Hit,Target = Mouse.Hit,Mouse.Target | |
| 64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 65 | end | |
| 66 | end | |
| 67 | ]],owner.Character) | |
| 68 | end | |
| 69 | RealGame = game;game = setmetatable({},{
| |
| 70 | __index = function (self,Index) | |
| 71 | local Sandbox = function (Thing) | |
| 72 | if Thing:IsA("Player") then
| |
| 73 | local RealPlayer = Thing | |
| 74 | return setmetatable({},{
| |
| 75 | __index = function (self,Index) | |
| 76 | local Type = type(RealPlayer[Index]) | |
| 77 | if Type == "function" then | |
| 78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 79 | return function (self) | |
| 80 | return InternalData["Mouse"] | |
| 81 | end | |
| 82 | end | |
| 83 | return function (self,...) | |
| 84 | return RealPlayer[Index](RealPlayer,...) | |
| 85 | end | |
| 86 | else | |
| 87 | if Index == "PlrObj" then | |
| 88 | return RealPlayer | |
| 89 | end | |
| 90 | return RealPlayer[Index] | |
| 91 | end | |
| 92 | end; | |
| 93 | __tostring = function(self) | |
| 94 | return RealPlayer.Name | |
| 95 | end | |
| 96 | }) | |
| 97 | end | |
| 98 | end | |
| 99 | if RealGame[Index] then | |
| 100 | local Type = type(RealGame[Index]) | |
| 101 | if Type == "function" then | |
| 102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 103 | return function (self,Service) | |
| 104 | if Service:lower() == "players" then | |
| 105 | return setmetatable({},{
| |
| 106 | __index = function (self2,Index2) | |
| 107 | local RealService = RealGame:GetService(Service) | |
| 108 | local Type2 = type(Index2) | |
| 109 | if Type2 == "function" then | |
| 110 | return function (self,...) | |
| 111 | return RealService[Index2](RealService,...) | |
| 112 | end | |
| 113 | else | |
| 114 | if Index2:lower() == "localplayer" then | |
| 115 | return Sandbox(owner) | |
| 116 | end | |
| 117 | return RealService[Index2] | |
| 118 | end | |
| 119 | end; | |
| 120 | __tostring = function(self) | |
| 121 | return RealGame:GetService(Service).Name | |
| 122 | end | |
| 123 | }) | |
| 124 | elseif Service:lower() == "contextactionservice" then | |
| 125 | return InternalData["ContextActionService"] | |
| 126 | elseif Service:lower() == "contextactionservice" then | |
| 127 | return InternalData["UserInputService"] | |
| 128 | elseif Service:lower() == "runservice" then | |
| 129 | return setmetatable({},{
| |
| 130 | __index = function(self2,Index2) | |
| 131 | local RealService = RealGame:GetService(Service) | |
| 132 | local Type2 = type(Index2) | |
| 133 | if Type2 == "function" then | |
| 134 | return function (self,...) | |
| 135 | return RealService[Index2](RealService,...) | |
| 136 | end | |
| 137 | else | |
| 138 | if Index2:lower() == "bindtorenderstep" then | |
| 139 | return function (self,Name,Priority,Function) | |
| 140 | return RealGame:GetService("RunService").Stepped:Connect(Function)
| |
| 141 | end | |
| 142 | end | |
| 143 | if Index2:lower() == "renderstepped" then | |
| 144 | return RealService["Stepped"] | |
| 145 | end | |
| 146 | return RealService[Index2] | |
| 147 | end | |
| 148 | end | |
| 149 | }) | |
| 150 | else | |
| 151 | return RealGame:GetService(Service) | |
| 152 | end | |
| 153 | end | |
| 154 | end | |
| 155 | return function (self,...) | |
| 156 | return RealGame[Index](RealGame,...) | |
| 157 | end | |
| 158 | else | |
| 159 | if game:GetService(Index) then | |
| 160 | return game:GetService(Index) | |
| 161 | end | |
| 162 | return RealGame[Index] | |
| 163 | end | |
| 164 | else | |
| 165 | return nil | |
| 166 | end | |
| 167 | end | |
| 168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
| |
| 169 | print("Complete! Running...")
| |
| 170 | ||
| 171 | ||
| 172 | --//Paste script below this line. | |
| 173 | ||
| 174 | print([[ | |
| 175 | ___________________________________ | |
| 176 | Edit by boss_kiddos, | |
| 177 | Edited By SonicSydney. | |
| 178 | because i love to edit. | |
| 179 | (Name: Hatred Chara) | |
| 180 | Update V2! | |
| 181 | ((Added Trail.)) | |
| 182 | ___________________________________ | |
| 183 | ]]) | |
| 184 | ||
| 185 | CV="Bright red" | |
| 186 | ||
| 187 | p = game.Players.LocalPlayer | |
| 188 | char = p.Character | |
| 189 | local txt = Instance.new("BillboardGui", char)
| |
| 190 | txt.Adornee = char .Head | |
| 191 | txt.Name = "_status" | |
| 192 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 193 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 194 | local text = Instance.new("TextLabel", txt)
| |
| 195 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 196 | text.FontSize = "Size24" | |
| 197 | text.TextScaled = true | |
| 198 | text.TextTransparency = 0 | |
| 199 | text.BackgroundTransparency = 1 | |
| 200 | text.TextTransparency = 0 | |
| 201 | text.TextStrokeTransparency = 0 | |
| 202 | text.Font = "Arcade" | |
| 203 | text.TextStrokeColor3 = Color3.fromRGB(400,-900,-900) | |
| 204 | ||
| 205 | v=Instance.new("Part")
| |
| 206 | v.Name = "ColorBrick" | |
| 207 | v.Parent=p.Character | |
| 208 | v.FormFactor="Symmetric" | |
| 209 | v.Anchored=true | |
| 210 | v.CanCollide=false | |
| 211 | v.BottomSurface="Smooth" | |
| 212 | v.TopSurface="Smooth" | |
| 213 | v.Size=Vector3.new(10,5,3) | |
| 214 | v.Transparency=1 | |
| 215 | v.CFrame=char.Torso.CFrame | |
| 216 | v.BrickColor=BrickColor.new(CV) | |
| 217 | v.Transparency=1 | |
| 218 | text.TextColor3 = Color3.fromRGB(255, 0, 0) | |
| 219 | v.Shape="Block" | |
| 220 | text.Text = "Edited by SonicSydney, Please Credit." | |
| 221 | coroutine.wrap(function() | |
| 222 | while wait() do | |
| 223 | wait(1) | |
| 224 | text.Text = "Hatred Chara" | |
| 225 | end | |
| 226 | end)() | |
| 227 | p = game.Players.LocalPlayer | |
| 228 | ||
| 229 | ||
| 230 | local Player = game:GetService("Players").LocalPlayer
| |
| 231 | repeat | |
| 232 | wait() | |
| 233 | until Player.Character | |
| 234 | local Character = Player.Character | |
| 235 | TrailSettings = {
| |
| 236 | Lifetime = 2, | |
| 237 | Texture = "http://www.roblox.com/asset/?id=650148892", | |
| 238 | Color1 = ColorSequence.new(BrickColor.new("Really red").Color, BrickColor.new("Dark red").Color),
| |
| 239 | Color2 = ColorSequence.new(BrickColor.new("Bright red").Color, BrickColor.new("Maroon").Color),
| |
| 240 | AllBody = true, | |
| 241 | UpperBodyOnly = false, | |
| 242 | LowerBodyOnly = false, | |
| 243 | Accessories = false, | |
| 244 | Extras = true, | |
| 245 | R15 = false, | |
| 246 | R15Parts = {"UpperTorso", "LowerTorso"}
| |
| 247 | } | |
| 248 | local Trail | |
| 249 | function UpperBody() | |
| 250 | if TrailSettings.R15 == false then | |
| 251 | A0 = Instance.new("Attachment", Character.Torso)
| |
| 252 | A1 = Instance.new("Attachment", Character.Head)
| |
| 253 | A2 = Instance.new("Attachment", Character["Right Arm"])
| |
| 254 | A3 = Instance.new("Attachment", Character["Left Arm"])
| |
| 255 | Trail = Instance.new("Trail", Character)
| |
| 256 | Trail.Attachment0 = A0 | |
| 257 | Trail.Attachment1 = A1 | |
| 258 | Trail.Texture = TrailSettings.Texture | |
| 259 | Trail.Color = TrailSettings.Color1 | |
| 260 | Trail.Lifetime = TrailSettings.Lifetime | |
| 261 | local Trail2 = Trail:Clone() | |
| 262 | Trail2.Parent = Character | |
| 263 | Trail2.Attachment1 = A2 | |
| 264 | local Trail3 = Trail:Clone() | |
| 265 | Trail3.Parent = Character | |
| 266 | Trail3.Attachment1 = A3 | |
| 267 | local Trail6 = Trail:Clone() | |
| 268 | Trail6.Parent = Character | |
| 269 | Trail6.Attachment0 = A1 | |
| 270 | Trail6.Attachment1 = A2 | |
| 271 | local Trail7 = Trail:Clone() | |
| 272 | Trail7.Parent = Character | |
| 273 | Trail7.Attachment0 = A1 | |
| 274 | Trail7.Attachment1 = A3 | |
| 275 | else | |
| 276 | A0 = Instance.new("Attachment", Character[TrailSettings.R15Parts[1]])
| |
| 277 | A0R = Instance.new("Attachment", Character[TrailSettings.R15Parts[2]])
| |
| 278 | A1 = Instance.new("Attachment", Character.Head)
| |
| 279 | A2 = Instance.new("Attachment", Character.RightUpperArm)
| |
| 280 | A2R = Instance.new("Attachment", Character.RightLowerArm)
| |
| 281 | A3 = Instance.new("Attachment", Character.LeftUpperArm)
| |
| 282 | A3R = Instance.new("Attachment", Character.LeftLowerArm)
| |
| 283 | Trail = Instance.new("Trail", Character)
| |
| 284 | Trail.Attachment0 = A0 | |
| 285 | Trail.Attachment1 = A1 | |
| 286 | Trail.Texture = TrailSettings.Texture | |
| 287 | Trail.Color = TrailSettings.Color1 | |
| 288 | Trail.Lifetime = TrailSettings.Lifetime | |
| 289 | local Trail2 = Trail:Clone() | |
| 290 | Trail2.Parent = Character | |
| 291 | Trail2.Attachment1 = A2 | |
| 292 | local Trail3 = Trail:Clone() | |
| 293 | Trail3.Parent = Character | |
| 294 | Trail3.Attachment1 = A3 | |
| 295 | local Trail6 = Trail:Clone() | |
| 296 | Trail6.Parent = Character | |
| 297 | Trail6.Attachment0 = A1 | |
| 298 | Trail6.Attachment1 = A2 | |
| 299 | local Trail7 = Trail:Clone() | |
| 300 | Trail7.Parent = Character | |
| 301 | Trail7.Attachment0 = A1 | |
| 302 | Trail7.Attachment1 = A3 | |
| 303 | local Trail1R = Trail:Clone() | |
| 304 | Trail1R.Parent = Character | |
| 305 | Trail1R.Attachment1 = A2R | |
| 306 | local Trail2R = Trail:Clone() | |
| 307 | Trail2R.Parent = Character | |
| 308 | Trail2R.Attachment1 = A3R | |
| 309 | local Trail6R = Trail:Clone() | |
| 310 | Trail6.Parent = Character | |
| 311 | Trail6.Attachment0 = A1 | |
| 312 | Trail6.Attachment1 = A2R | |
| 313 | local Trail7R = Trail:Clone() | |
| 314 | Trail7.Parent = Character | |
| 315 | Trail7.Attachment0 = A1 | |
| 316 | Trail7.Attachment1 = A3R | |
| 317 | end | |
| 318 | end | |
| 319 | function LowerBody() | |
| 320 | if TrailSettings.R15 == false then | |
| 321 | A4 = Instance.new("Attachment", Character["Right Leg"])
| |
| 322 | A5 = Instance.new("Attachment", Character["Left Leg"])
| |
| 323 | local Trail4 = Trail:Clone() | |
| 324 | Trail4.Parent = Character | |
| 325 | Trail4.Attachment1 = A4 | |
| 326 | local Trail5 = Trail:Clone() | |
| 327 | Trail5.Parent = Character | |
| 328 | Trail5.Attachment1 = A5 | |
| 329 | local Trail8 = Trail:Clone() | |
| 330 | Trail8.Parent = Character | |
| 331 | Trail8.Attachment0 = A2 | |
| 332 | Trail8.Attachment1 = A4 | |
| 333 | Trail8.Color = TrailSettings.Color2 | |
| 334 | local Trail9 = Trail:Clone() | |
| 335 | Trail9.Parent = Character | |
| 336 | Trail9.Attachment0 = A3 | |
| 337 | Trail9.Attachment1 = A5 | |
| 338 | Trail9.Color = TrailSettings.Color2 | |
| 339 | local FT = Trail:Clone() | |
| 340 | FT.Parent = Character | |
| 341 | FT.Attachment0 = A4 | |
| 342 | FT.Attachment1 = A5 | |
| 343 | FT.Color = TrailSettings.Color2 | |
| 344 | else | |
| 345 | A4 = Instance.new("Attachment", Character.RightLowerLeg)
| |
| 346 | A4R = Instance.new("Attachment", Character.RightUpperLeg)
| |
| 347 | A5 = Instance.new("Attachment", Character.LeftLowerLeg)
| |
| 348 | A5R = Instance.new("Attachment", Character.LeftUpperLeg)
| |
| 349 | local Trail4 = Trail:Clone() | |
| 350 | Trail4.Parent = Character | |
| 351 | Trail4.Attachment1 = A4 | |
| 352 | local Trail5 = Trail:Clone() | |
| 353 | Trail5.Parent = Character | |
| 354 | Trail5.Attachment1 = A5 | |
| 355 | local Trail8 = Trail:Clone() | |
| 356 | Trail8.Parent = Character | |
| 357 | Trail8.Attachment0 = A2 | |
| 358 | Trail8.Attachment1 = A4 | |
| 359 | Trail8.Color = TrailSettings.Color2 | |
| 360 | local Trail9 = Trail:Clone() | |
| 361 | Trail9.Parent = Character | |
| 362 | Trail9.Attachment0 = A3 | |
| 363 | Trail9.Attachment1 = A5 | |
| 364 | Trail9.Color = TrailSettings.Color2 | |
| 365 | local FT = Trail:Clone() | |
| 366 | FT.Parent = Character | |
| 367 | FT.Attachment0 = A4 | |
| 368 | FT.Attachment1 = A5 | |
| 369 | FT.Color = TrailSettings.Color2 | |
| 370 | local Trail3R = Trail:Clone() | |
| 371 | Trail3R.Parent = Character | |
| 372 | Trail3R.Attachment1 = A4R | |
| 373 | local Trail4R = Trail:Clone() | |
| 374 | Trail4R.Parent = Character | |
| 375 | Trail4R.Attachment1 = A5R | |
| 376 | local Trail8 = Trail:Clone() | |
| 377 | Trail8.Parent = Character | |
| 378 | Trail8.Attachment0 = A2R | |
| 379 | Trail8.Attachment1 = A4R | |
| 380 | Trail8.Color = TrailSettings.Color2 | |
| 381 | local Trail9 = Trail:Clone() | |
| 382 | Trail9.Parent = Character | |
| 383 | Trail9.Attachment0 = A3R | |
| 384 | Trail9.Attachment1 = A5R | |
| 385 | Trail9.Color = TrailSettings.Color2 | |
| 386 | local FT2R = Trail:Clone() | |
| 387 | FT2R.Parent = Character | |
| 388 | FT2R.Attachment0 = A4R | |
| 389 | FT2R.Attachment1 = A5R | |
| 390 | FT2R.Color = TrailSettings.Color2 | |
| 391 | end | |
| 392 | end | |
| 393 | function AllBody() | |
| 394 | UpperBody() | |
| 395 | LowerBody() | |
| 396 | end | |
| 397 | if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
| 398 | TrailSettings.UpperBodyOnly = false | |
| 399 | TrailSettings.LowerBodyOnly = false | |
| 400 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then | |
| 401 | TrailSettings.UpperBodyOnly = false | |
| 402 | TrailSettings.LowerBodyOnly = false | |
| 403 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then | |
| 404 | TrailSettings.UpperBodyOnly = false | |
| 405 | TrailSettings.LowerBodyOnly = false | |
| 406 | elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
| 407 | TrailSettings.AllBody = true | |
| 408 | TrailSettings.UpperBodyOnly = false | |
| 409 | TrailSettings.LowerBodyOnly = false | |
| 410 | end | |
| 411 | if TrailSettings.UpperBodyOnly == true then | |
| 412 | UpperBody() | |
| 413 | print("Called Upper Body Trail")
| |
| 414 | elseif TrailSettings.LowerBodyOnly == true then | |
| 415 | LowerBody() | |
| 416 | print("Called Lower Body Trail")
| |
| 417 | elseif TrailSettings.AllBody == true then | |
| 418 | AllBody() | |
| 419 | print("Called Full Body Trail")
| |
| 420 | end | |
| 421 | if TrailSettings.Accessories == true then | |
| 422 | for Index, Item in pairs(Character:GetChildren()) do | |
| 423 | if Item:IsA("Accessory") then
| |
| 424 | local AA = Instance.new("Attachment", Item.Handle)
| |
| 425 | local ATrail = Trail:Clone() | |
| 426 | ATrail.Parent = Character | |
| 427 | ATrail.Attachment1 = AA | |
| 428 | end | |
| 429 | end | |
| 430 | end | |
| 431 | if TrailSettings.Extras == true then | |
| 432 | spawn(function() | |
| 433 | repeat | |
| 434 | wait() | |
| 435 | until Trail | |
| 436 | local AB = Instance.new("Attachment", a)
| |
| 437 | local ABT = Trail:Clone() | |
| 438 | ABT.Parent = Character | |
| 439 | ABT.Attachment0 = A4 | |
| 440 | ABT.Attachment1 = AB | |
| 441 | ABT.Color = TrailSettings.Color2 | |
| 442 | local ABT2 = Trail:Clone() | |
| 443 | ABT2.Parent = Character | |
| 444 | ABT2.Attachment0 = A5 | |
| 445 | ABT2.Attachment1 = AB | |
| 446 | ABT2.Color = TrailSettings.Color2 | |
| 447 | end) | |
| 448 | end | |
| 449 | ||
| 450 | ||
| 451 | ||
| 452 | char = p.Character | |
| 453 | torso = char.Torso | |
| 454 | neck = char.Torso.Neck | |
| 455 | ||
| 456 | ||
| 457 | print("The User is: "..game:GetService("Players").LocalPlayer.Name.." :)")
| |
| 458 | ||
| 459 | local p = game:GetService("Players").LocalPlayer
| |
| 460 | local char = p.Character | |
| 461 | local mouse = p:GetMouse() | |
| 462 | local larm = char:WaitForChild("Left Arm")
| |
| 463 | local rarm = char:WaitForChild("Right Arm")
| |
| 464 | local lleg = char:WaitForChild("Left Leg")
| |
| 465 | local rleg = char:WaitForChild("Right Leg")
| |
| 466 | local hed = char:WaitForChild("Head")
| |
| 467 | local torso = char:WaitForChild("Torso")
| |
| 468 | local root = char:WaitForChild("HumanoidRootPart")
| |
| 469 | local hum = char:FindFirstChildOfClass("Humanoid")
| |
| 470 | local debris = game:GetService("Debris")
| |
| 471 | local input = game:GetService("UserInputService")
| |
| 472 | local run = game:GetService("RunService")
| |
| 473 | local rs = run.RenderStepped | |
| 474 | local wingpose = "Idle" | |
| 475 | local DebrisModel = Instance.new("Model",char)
| |
| 476 | DebrisModel.Name = "Debris" | |
| 477 | repeat rs:wait() until p.CharacterAppearanceLoaded | |
| 478 | ||
| 479 | noidle = false | |
| 480 | shift = false | |
| 481 | control = false | |
| 482 | no_nosound_able = false | |
| 483 | kills = 0 | |
| 484 | ||
| 485 | ---------------------------------------------------------------------------- | |
| 486 | ||
| 487 | function rswait(value) | |
| 488 | if value ~= nil and value ~= 0 then | |
| 489 | for i=1,value do | |
| 490 | rs:wait() | |
| 491 | end | |
| 492 | else | |
| 493 | rs:wait() | |
| 494 | end | |
| 495 | end | |
| 496 | ||
| 497 | ---------------------------------------------------------------------------- | |
| 498 | ||
| 499 | local timeposition = 0 | |
| 500 | ||
| 501 | function music(id) | |
| 502 | if not torso:FindFirstChild("MusicRuin") then
| |
| 503 | soundz = Instance.new("Sound",torso)
| |
| 504 | end | |
| 505 | soundz.Volume = 10 | |
| 506 | soundz.Name = "MusicRuin" | |
| 507 | soundz.Looped = true | |
| 508 | soundz.PlaybackSpeed = 1 | |
| 509 | soundz.SoundId = "rbxassetid://"..id | |
| 510 | soundz:Stop() | |
| 511 | soundz:Play() | |
| 512 | if no_nosound_able == true then | |
| 513 | soundz.TimePosition = timeposition | |
| 514 | end | |
| 515 | end | |
| 516 | ||
| 517 | ---------------------------------------------------------------------------- | |
| 518 | ||
| 519 | function lerp(a, b, t) | |
| 520 | return a + (b - a)*t | |
| 521 | end | |
| 522 | ||
| 523 | ---------------------------------------------------------------------------- | |
| 524 | ||
| 525 | function Lerp(c1,c2,al) | |
| 526 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 527 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 528 | for i,v in pairs(com1) do | |
| 529 | com1[i] = v+(com2[i]-v)*al | |
| 530 | end | |
| 531 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 532 | end | |
| 533 | ||
| 534 | ---------------------------------------------------------------------------- | |
| 535 | ||
| 536 | function slerp(a, b, t) | |
| 537 | dot = a:Dot(b) | |
| 538 | if dot > 0.99999 or dot < -0.99999 then | |
| 539 | return t <= 0.5 and a or b | |
| 540 | else | |
| 541 | r = math.acos(dot) | |
| 542 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 543 | end | |
| 544 | end | |
| 545 | ||
| 546 | ---------------------------------------------------------------------------- | |
| 547 | ||
| 548 | function clerp(c1,c2,al) | |
| 549 | ||
| 550 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 551 | ||
| 552 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 553 | ||
| 554 | for i,v in pairs(com1) do | |
| 555 | ||
| 556 | com1[i] = lerp(v,com2[i],al) | |
| 557 | ||
| 558 | end | |
| 559 | ||
| 560 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 561 | ||
| 562 | end | |
| 563 | ||
| 564 | ---------------------------------------------------------------------------- | |
| 565 | ||
| 566 | function findAllNearestTorso(pos,dist) | |
| 567 | local list = workspace:children() | |
| 568 | local torso = {}
| |
| 569 | local temp = nil | |
| 570 | local human = nil | |
| 571 | local temp2 = nil | |
| 572 | for x = 1, #list do | |
| 573 | temp2 = list[x] | |
| 574 | if (temp2.className == "Model") and (temp2 ~= char) then | |
| 575 | temp = temp2:findFirstChild("Torso")
| |
| 576 | human = temp2:findFirstChildOfClass("Humanoid")
| |
| 577 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
| 578 | if (temp.Position - pos).magnitude < dist then | |
| 579 | table.insert(torso,temp) | |
| 580 | dist = (temp.Position - pos).magnitude | |
| 581 | end | |
| 582 | end | |
| 583 | end | |
| 584 | end | |
| 585 | return torso | |
| 586 | end | |
| 587 | ||
| 588 | ---------------------------------------------------------------------------- | |
| 589 | ||
| 590 | function checkIfNotPlayer(model) | |
| 591 | 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 | |
| 592 | return true | |
| 593 | else | |
| 594 | return false | |
| 595 | end | |
| 596 | end | |
| 597 | ||
| 598 | ---------------------------------------------------------------------------- | |
| 599 | ||
| 600 | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) | |
| 601 | ||
| 602 | local wld = Instance.new("Weld", wp1)
| |
| 603 | ||
| 604 | wld.Part0 = wp0 | |
| 605 | ||
| 606 | wld.Part1 = wp1 | |
| 607 | ||
| 608 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 609 | ||
| 610 | return wld | |
| 611 | ||
| 612 | end | |
| 613 | ||
| 614 | function weld(model) | |
| 615 | local parts,last = {}
| |
| 616 | local function scan(parent) | |
| 617 | for _,v in pairs(parent:GetChildren()) do | |
| 618 | if (v:IsA("BasePart")) then
| |
| 619 | if (last) then | |
| 620 | local w = Instance.new("Weld")
| |
| 621 | w.Name = ("%s_Weld"):format(v.Name)
| |
| 622 | w.Part0,w.Part1 = last,v | |
| 623 | w.C0 = last.CFrame:inverse() | |
| 624 | w.C1 = v.CFrame:inverse() | |
| 625 | w.Parent = last | |
| 626 | end | |
| 627 | last = v | |
| 628 | table.insert(parts,v) | |
| 629 | end | |
| 630 | scan(v) | |
| 631 | end | |
| 632 | end | |
| 633 | scan(model) | |
| 634 | for _,v in pairs(parts) do | |
| 635 | v.Anchored = false | |
| 636 | v.Locked = true | |
| 637 | v.Anchored = false | |
| 638 | v.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 639 | v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 640 | v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 641 | v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 642 | v.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 643 | v.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 644 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0) | |
| 645 | end | |
| 646 | end | |
| 647 | ||
| 648 | ---------------------------------------------------------------------------- | |
| 649 | ||
| 650 | function calculate(part,asd) | |
| 651 | local Head = hed | |
| 652 | local RightShoulder = asd | |
| 653 | local RightArm = part | |
| 654 | local MousePosition = mouse.Hit.p | |
| 655 | local ToMouse = (MousePosition - Head.Position).unit | |
| 656 | local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0))) | |
| 657 | 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))) | |
| 658 | local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit | |
| 659 | local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit | |
| 660 | local LateralAngle = math.acos(ToMouseRightArm:Dot(Look)) | |
| 661 | if tostring(LateralAngle) == "-1.#IND" then | |
| 662 | LateralAngle = 0 | |
| 663 | end | |
| 664 | local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm) | |
| 665 | if LateralAngle > (math.pi / 2) then | |
| 666 | LateralAngle = (math.pi / 2) | |
| 667 | local Torso = root | |
| 668 | local Point = Torso.CFrame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p) | |
| 669 | if Point.Z > 0 then | |
| 670 | if Point.X > -0 and RightArm == rarm then | |
| 671 | Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(110),0) | |
| 672 | elseif Point.X < 0 and RightArm == rarm then | |
| 673 | Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(-110),0) | |
| 674 | end | |
| 675 | end | |
| 676 | end | |
| 677 | if Cross.Y < 0 then | |
| 678 | LateralAngle = -LateralAngle | |
| 679 | end | |
| 680 | return(CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)) | |
| 681 | end | |
| 682 | ||
| 683 | ---------------------------------------------------------------------------- | |
| 684 | ||
| 685 | function sound(id,position,vol,pitch,start,finish) | |
| 686 | coroutine.resume(coroutine.create(function() | |
| 687 | ||
| 688 | local part = Instance.new("Part",workspace)
| |
| 689 | part.Position = position | |
| 690 | part.Size = Vector3.new(0,0,0) | |
| 691 | part.CanCollide = false | |
| 692 | part.Transparency = 1 | |
| 693 | ||
| 694 | local sound = Instance.new("Sound",part)
| |
| 695 | ||
| 696 | sound.SoundId = "rbxassetid://"..id | |
| 697 | ||
| 698 | repeat rs:wait() until sound.IsLoaded | |
| 699 | ||
| 700 | if vol ~= nil then | |
| 701 | sound.Volume = vol | |
| 702 | end | |
| 703 | ||
| 704 | if pitch ~= nil then | |
| 705 | sound.PlaybackSpeed = pitch | |
| 706 | end | |
| 707 | ||
| 708 | if start ~= nil then | |
| 709 | sound.TimePosition = start | |
| 710 | end | |
| 711 | ||
| 712 | if finish ~= nil then | |
| 713 | debris:AddItem(part,finish-start) | |
| 714 | else | |
| 715 | debris:AddItem(part,sound.TimeLength) | |
| 716 | end | |
| 717 | ||
| 718 | sound:Play() | |
| 719 | ||
| 720 | return sound | |
| 721 | ||
| 722 | end)) | |
| 723 | end | |
| 724 | ||
| 725 | ---------------------------------------------------------------------------- | |
| 726 | ||
| 727 | function computeDirection(vec) | |
| 728 | local lenSquared = vec.magnitude * vec.magnitude | |
| 729 | local invSqrt = 1 / math.sqrt(lenSquared) | |
| 730 | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) | |
| 731 | end | |
| 732 | ||
| 733 | ---------------------------------------------------------------------------- | |
| 734 | ||
| 735 | local shaking = 0 | |
| 736 | function shake(num) if num > shaking then shaking = num end end | |
| 737 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 738 | hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))*(shaking/100) | |
| 739 | if shaking > 0 then shaking = shaking - 1 else shaking = 0 end | |
| 740 | end) | |
| 741 | ||
| 742 | plr = game:GetService("Players").LocalPlayer
| |
| 743 | DebrisModel = Instance.new("Model",plr.Character)
| |
| 744 | DebrisModel.Name = "DebrisModel" | |
| 745 | ||
| 746 | function Effect(mesh,size,transparency,material,color,position,rotation,sizechange,rotationchange,transparencychange,acceleration) | |
| 747 | ||
| 748 | local part = Instance.new("Part",DebrisModel)
| |
| 749 | part.Anchored = true | |
| 750 | part.CanCollide = false | |
| 751 | part.Size = Vector3.new(1,1,1) | |
| 752 | part.Transparency = transparency | |
| 753 | part.Material = material | |
| 754 | part.Color = color | |
| 755 | part.CFrame = CFrame.new(position)*CFrame.Angles(math.rad(rotation.X),math.rad(rotation.Y),math.rad(rotation.Z)) | |
| 756 | ||
| 757 | local partmesh = Instance.new("SpecialMesh",part)
| |
| 758 | if tonumber(mesh) == nil then partmesh.MeshType = mesh else partmesh.MeshId = "rbxassetid://"..mesh end | |
| 759 | partmesh.Scale = size | |
| 760 | ||
| 761 | local pvalue = Instance.new("Vector3Value",part)
| |
| 762 | pvalue.Name = "Position" | |
| 763 | pvalue.Value = part.Position | |
| 764 | ||
| 765 | local svalue = Instance.new("Vector3Value",part)
| |
| 766 | svalue.Name = "Size" | |
| 767 | svalue.Value = sizechange | |
| 768 | ||
| 769 | local rvalue = Instance.new("Vector3Value",part)
| |
| 770 | rvalue.Name = "Rotation" | |
| 771 | rvalue.Value = rotationchange | |
| 772 | ||
| 773 | local tvalue = Instance.new("NumberValue",part)
| |
| 774 | tvalue.Name = "Transparency" | |
| 775 | tvalue.Value = transparencychange | |
| 776 | ||
| 777 | local avalue = Instance.new("NumberValue",part)
| |
| 778 | avalue.Name = "Acceleration" | |
| 779 | avalue.Value = acceleration | |
| 780 | ||
| 781 | part.Name = "EFFECT" | |
| 782 | ||
| 783 | return part | |
| 784 | ||
| 785 | end | |
| 786 | ||
| 787 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 788 | ||
| 789 | ||
| 790 | if not plr.Character:FindFirstChild("DebrisModel") then
| |
| 791 | DebrisModel = Instance.new("Model",plr.Character)
| |
| 792 | DebrisModel.Name = "DebrisModel" | |
| 793 | end | |
| 794 | ||
| 795 | for i,v in pairs(DebrisModel:GetChildren()) do | |
| 796 | if v:IsA("BasePart") and v.Name == "EFFECT" then
| |
| 797 | local pvalue = v:FindFirstChild("Position").Value
| |
| 798 | local svalue = v:FindFirstChild("Size").Value
| |
| 799 | local rvalue = v:FindFirstChild("Rotation").Value
| |
| 800 | local tvalue = v:FindFirstChild("Transparency").Value
| |
| 801 | local avalue = v:FindFirstChild("Acceleration").Value
| |
| 802 | local mesh = v:FindFirstChild("Mesh")
| |
| 803 | mesh.Scale = mesh.Scale + svalue | |
| 804 | v:FindFirstChild("Size").Value = v:FindFirstChild("Size").Value + (Vector3.new(1,1,1)*avalue)
| |
| 805 | v.Transparency = v.Transparency + tvalue | |
| 806 | v.CFrame = v.CFrame*CFrame.Angles(math.rad(rvalue.X),math.rad(rvalue.Y),math.rad(rvalue.Z)) | |
| 807 | if v.Transparency >= 1 or mesh.Scale.X < 0 or mesh.Scale.Y < 0 or mesh.Scale.Z < 0 then | |
| 808 | v:Destroy() | |
| 809 | end | |
| 810 | end | |
| 811 | end | |
| 812 | ||
| 813 | ||
| 814 | end) | |
| 815 | ||
| 816 | ---------------------------------------------------------------------------- | |
| 817 | skin_color = BrickColor.new("Light orange")
| |
| 818 | p:ClearCharacterAppearance() | |
| 819 | --hed:WaitForChild("face"):Destroy()
| |
| 820 | ||
| 821 | ---------------------------------------------------------------------------- | |
| 822 | music(1620580998) | |
| 823 | equalizer = Instance.new("EqualizerSoundEffect",torso:FindFirstChild("MusicRuin"))
| |
| 824 | ||
| 825 | local size = 1 | |
| 826 | ||
| 827 | newWeld(torso, larm, -1.5*size, 0.5*size, 0) | |
| 828 | larm.Weld.C1 = CFrame.new(0, 0.5*size, 0) | |
| 829 | newWeld(torso, rarm, 1.5*size, 0.5*size, 0) | |
| 830 | rarm.Weld.C1 = CFrame.new(0, 0.5*size, 0) | |
| 831 | newWeld(torso, hed, 0, 1.5*size, 0) | |
| 832 | newWeld(torso, lleg, -0.5*size, -1, 0) | |
| 833 | lleg.Weld.C1 = CFrame.new(0, 1*size, 0) | |
| 834 | newWeld(torso, rleg, 0.5*size, -1*size, 0) | |
| 835 | rleg.Weld.C1 = CFrame.new(0, 1*size, 0) | |
| 836 | newWeld(root, torso, 0, -1*size, 0) | |
| 837 | torso.Weld.C1 = CFrame.new(0, -1*size, 0) | |
| 838 | ||
| 839 | emitters={}
| |
| 840 | for i,v in pairs(char:GetChildren()) do | |
| 841 | if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
| |
| 842 | local emitter = Instance.new("ParticleEmitter",v)
| |
| 843 | emitter.LightEmission = 1 | |
| 844 | emitter.Transparency = NumberSequence.new(0.95,1) | |
| 845 | emitter.Size = NumberSequence.new(2,5) | |
| 846 | emitter.SpreadAngle = Vector2.new(360,360) | |
| 847 | emitter.Speed = NumberRange.new(1) | |
| 848 | emitter.Lifetime = NumberRange.new(0.75) | |
| 849 | emitter.Texture = "rbxassetid://650148888" | |
| 850 | emitter.Rate = 20 | |
| 851 | emitter.Color = ColorSequence.new(Color3.new(133,0,0)) | |
| 852 | emitter.LockedToPart = true | |
| 853 | table.insert(emitters,emitter) | |
| 854 | end | |
| 855 | end | |
| 856 | ---------------------------------------------------------------------------------------- | |
| 857 | hair = Instance.new("Part",char)
| |
| 858 | hair.Color = Color3.fromRGB(128,0,0) | |
| 859 | hair.CanCollide = false | |
| 860 | meshhair = Instance.new("SpecialMesh",hair)
| |
| 861 | meshhair.MeshId = "rbxassetid://431809364" | |
| 862 | meshhair.Scale = Vector3.new(1,1,1)*1.1 | |
| 863 | newWeld(hed,hair,0,0.22,0) | |
| 864 | ||
| 865 | Model0 = Instance.new("Model")
| |
| 866 | Part1 = Instance.new("Part")
| |
| 867 | Part2 = Instance.new("Part")
| |
| 868 | Part3 = Instance.new("Part")
| |
| 869 | Part4 = Instance.new("Part")
| |
| 870 | Part5 = Instance.new("Part")
| |
| 871 | Part6 = Instance.new("Part")
| |
| 872 | Part7 = Instance.new("Part")
| |
| 873 | Model0.Parent = char | |
| 874 | Part1.Parent = Model0 | |
| 875 | Part1.Anchored = true | |
| 876 | Part1.CanCollide = false | |
| 877 | Part1.Size = Vector3.new(2.02000022, 0.370000094, 1.01999998) | |
| 878 | Part1.CFrame = CFrame.new(87.5, 17.1749992, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 879 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 880 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 881 | Part1.Position = Vector3.new(87.5, 17.1749992, 83.5) | |
| 882 | Part1.Color = Color3.new(0, 1, 0) | |
| 883 | Part2.Parent = Model0 | |
| 884 | Part2.Anchored = true | |
| 885 | Part2.CanCollide = false | |
| 886 | Part2.Size = Vector3.new(0.920000076, 0.110000037, 0.579999983) | |
| 887 | Part2.CFrame = CFrame.new(88.0500031, 18.9549999, 83.2799988, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 888 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
| 889 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
| 890 | Part2.Position = Vector3.new(88.0500031, 18.9549999, 83.2799988) | |
| 891 | Part2.Color = Color3.new(0, 1, 0) | |
| 892 | Part3.Parent = Model0 | |
| 893 | Part3.Anchored = true | |
| 894 | Part3.CanCollide = false | |
| 895 | Part3.Size = Vector3.new(2.02000022, 0.590000093, 1.01999998) | |
| 896 | Part3.CFrame = CFrame.new(87.5, 17.6550007, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 897 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
| 898 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
| 899 | Part3.Position = Vector3.new(87.5, 17.6550007, 83.5) | |
| 900 | Part3.Color = Color3.new(0.992157, 0.917647, 0.552941) | |
| 901 | Part4.Parent = Model0 | |
| 902 | Part4.Anchored = true | |
| 903 | Part4.CanCollide = false | |
| 904 | Part4.Size = Vector3.new(2.02000022, 0.110000037, 0.439999968) | |
| 905 | Part4.CFrame = CFrame.new(87.5, 18.9549999, 83.7900009, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 906 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
| 907 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
| 908 | Part4.Position = Vector3.new(87.5, 18.9549999, 83.7900009) | |
| 909 | Part4.Color = Color3.new(0, 1, 0) | |
| 910 | Part5.Parent = Model0 | |
| 911 | Part5.Anchored = true | |
| 912 | Part5.CanCollide = false | |
| 913 | Part5.Size = Vector3.new(0.920000076, 0.110000037, 0.579999983) | |
| 914 | Part5.CFrame = CFrame.new(86.9499969, 18.9549999, 83.2799988, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 915 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
| 916 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
| 917 | Part5.Position = Vector3.new(86.9499969, 18.9549999, 83.2799988) | |
| 918 | Part5.Color = Color3.new(0, 1, 0) | |
| 919 | Part6.Name = "asd" | |
| 920 | Part6.Parent = Model0 | |
| 921 | Part6.Transparency = 1 | |
| 922 | Part6.Anchored = true | |
| 923 | Part6.CanCollide = false | |
| 924 | Part6.Size = Vector3.new(2, 2, 1) | |
| 925 | Part6.CFrame = CFrame.new(87.5, 18, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 926 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
| 927 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
| 928 | Part6.Position = Vector3.new(87.5, 18, 83.5) | |
| 929 | Part7.Parent = Model0 | |
| 930 | Part7.Anchored = true | |
| 931 | Part7.CanCollide = false | |
| 932 | Part7.Size = Vector3.new(2.02000022, 0.949999988, 1.01999998) | |
| 933 | Part7.CFrame = CFrame.new(87.5, 18.4249992, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 934 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
| 935 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
| 936 | Part7.Position = Vector3.new(87.5, 18.4249992, 83.5) | |
| 937 | Part7.Color = Color3.new(0, 1, 0) | |
| 938 | weld(Model0) | |
| 939 | newWeld(torso,Model0.asd) | |
| 940 | ||
| 941 | Model0 = Instance.new("Model")
| |
| 942 | Part1 = Instance.new("Part")
| |
| 943 | Part2 = Instance.new("Part")
| |
| 944 | Model0.Parent = char | |
| 945 | Part1.Parent = Model0 | |
| 946 | Part1.Anchored = true | |
| 947 | Part1.CanCollide = false | |
| 948 | Part1.Size = Vector3.new(1.01999998, 1.91000009, 1.01999998) | |
| 949 | Part1.CFrame = CFrame.new(49.5, 18.0999985, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 950 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 951 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 952 | Part1.Position = Vector3.new(49.5, 18.0999985, 83.5) | |
| 953 | Part1.Color = Color3.new(0, 1, 0) | |
| 954 | Part2.Name = "asd" | |
| 955 | Part2.Parent = Model0 | |
| 956 | Part2.Transparency = 1 | |
| 957 | Part2.Anchored = true | |
| 958 | Part2.CanCollide = false | |
| 959 | Part2.Size = Vector3.new(1, 2, 1) | |
| 960 | Part2.CFrame = CFrame.new(49.5, 18.0450001, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 961 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
| 962 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
| 963 | Part2.Position = Vector3.new(49.5, 18.0450001, 83.5) | |
| 964 | weld(Model0) | |
| 965 | Model1=Model0:Clone() | |
| 966 | Model1.Parent=char | |
| 967 | newWeld(larm,Model0.asd,0,0,0) | |
| 968 | newWeld(rarm,Model1.asd,0,0,0) | |
| 969 | ||
| 970 | Model0 = Instance.new("Model")
| |
| 971 | Part1 = Instance.new("Part")
| |
| 972 | Part2 = Instance.new("Part")
| |
| 973 | Part3 = Instance.new("Part")
| |
| 974 | Model0.Parent = char | |
| 975 | Part1.Parent = Model0 | |
| 976 | Part1.Anchored = true | |
| 977 | Part1.CanCollide = false | |
| 978 | Part1.Size = Vector3.new(1.03999996, 0.27000007, 1.03999996) | |
| 979 | Part1.CFrame = CFrame.new(28, 17.125, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 980 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 981 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 982 | Part1.Position = Vector3.new(28, 17.125, 83.5) | |
| 983 | Part1.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 984 | Part2.Parent = Model0 | |
| 985 | Part2.Anchored = true | |
| 986 | Part2.CanCollide = false | |
| 987 | Part2.Size = Vector3.new(1.01999998, 1.91000009, 1.01999998) | |
| 988 | Part2.CFrame = CFrame.new(28, 18.0550003, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 989 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
| 990 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
| 991 | Part2.Position = Vector3.new(28, 18.0550003, 83.5) | |
| 992 | Part2.Color = Color3.new(0.411765, 0.25098, 0.156863) | |
| 993 | Part3.Name = "asd" | |
| 994 | Part3.Parent = Model0 | |
| 995 | Part3.Transparency = 1 | |
| 996 | Part3.Anchored = true | |
| 997 | Part3.CanCollide = false | |
| 998 | Part3.Size = Vector3.new(1, 2, 1) | |
| 999 | Part3.CFrame = CFrame.new(28, 18, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1000 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
| 1001 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
| 1002 | Part3.Position = Vector3.new(28, 18, 83.5) | |
| 1003 | weld(Model0) | |
| 1004 | Model1=Model0:Clone() | |
| 1005 | Model1.Parent=char | |
| 1006 | newWeld(lleg,Model0.asd,0,0,0) | |
| 1007 | newWeld(rleg,Model1.asd,0,0,0) | |
| 1008 | ||
| 1009 | ---------------------------------------------------------------------------- | |
| 1010 | HitBox = Instance.new("Part",DebrisModel)
| |
| 1011 | HitBox.Size = Vector3.new(0.5,0.5,2.45) | |
| 1012 | HitBox.CanCollide = false | |
| 1013 | HitBox:BreakJoints() | |
| 1014 | HitBox.Transparency = 1 | |
| 1015 | newWeld(rarm,HitBox,0,-0.95,-1.9) | |
| 1016 | atch0 = Instance.new("Attachment",HitBox)
| |
| 1017 | atch0.Position = Vector3.new(0,0,HitBox.Size.Z/2) | |
| 1018 | atch1 = Instance.new("Attachment",HitBox)
| |
| 1019 | atch1.Position = Vector3.new(0,0,-HitBox.Size.Z/2) | |
| 1020 | trail = Instance.new("Trail",HitBox)
| |
| 1021 | trail.Attachment0 = atch0 | |
| 1022 | trail.Attachment1 = atch1 | |
| 1023 | trail.Lifetime = 0.2 | |
| 1024 | trail.Enabled = true | |
| 1025 | trail.LightEmission = 1 | |
| 1026 | trail.LightInfluence = 0 | |
| 1027 | trail.Color = ColorSequence.new(Color3.new(1,0,0)) | |
| 1028 | trail.Transparency = NumberSequence.new(0,1) | |
| 1029 | ||
| 1030 | function ded(model) | |
| 1031 | kills = kills + 1 | |
| 1032 | model.Archivable = true | |
| 1033 | model.Head:ClearAllChildren() | |
| 1034 | local clone = model:Clone() | |
| 1035 | clone.Parent = workspace | |
| 1036 | clone.Name = "DED" | |
| 1037 | model:Destroy() | |
| 1038 | clone:FindFirstChildOfClass("Humanoid"):Destroy()
| |
| 1039 | local emitters={}
| |
| 1040 | for i,v in pairs(clone:GetChildren()) do | |
| 1041 | if v:IsA("Accoutrement") then
| |
| 1042 | v:Destroy() | |
| 1043 | end | |
| 1044 | if v:IsA("Part") then
| |
| 1045 | v.Anchored = true | |
| 1046 | v.CanCollide = false | |
| 1047 | v.Transparency = 1 | |
| 1048 | local emitter = Instance.new("ParticleEmitter",v)
| |
| 1049 | emitter.LightEmission = 1 | |
| 1050 | emitter.Transparency = NumberSequence.new(0,1) | |
| 1051 | emitter.Size = NumberSequence.new(0,0.8) | |
| 1052 | emitter.SpreadAngle = Vector2.new(360,360) | |
| 1053 | emitter.Speed = NumberRange.new(0.5) | |
| 1054 | emitter.Lifetime = NumberRange.new(0.75) | |
| 1055 | emitter.Texture = "rbxassetid://650148888" | |
| 1056 | emitter.Rate = 20 | |
| 1057 | emitter.Color = ColorSequence.new(Color3.new(1,1,1)) | |
| 1058 | emitter.LockedToPart = false | |
| 1059 | table.insert(emitters,emitter) | |
| 1060 | end | |
| 1061 | end | |
| 1062 | delay(1, function() | |
| 1063 | sound(427025525,clone.Head.Position,10,1) | |
| 1064 | for i,v in pairs(emitters) do | |
| 1065 | v.Speed = NumberRange.new(4) | |
| 1066 | v.Acceleration = Vector3.new(0,10,0) | |
| 1067 | delay(0.5, function() | |
| 1068 | v.Enabled = false | |
| 1069 | debris:AddItem(clone,0.75) | |
| 1070 | end) | |
| 1071 | end | |
| 1072 | end) | |
| 1073 | end | |
| 1074 | ||
| 1075 | local alreadytouched = {}
| |
| 1076 | HitBox.Touched:connect(function(ht) | |
| 1077 | coroutine.resume(coroutine.create(function() | |
| 1078 | local hit = ht.Parent | |
| 1079 | if mode == "determination" and hit.Name ~= "DED" and attacking == true and checkIfNotPlayer(ht) and hit:FindFirstChildOfClass("Humanoid") and hit:FindFirstChildOfClass("Humanoid").Health > 0 then
| |
| 1080 | local hurt = true | |
| 1081 | for i,v in pairs(alreadytouched) do if v == hit then hurt = false end end | |
| 1082 | if hurt == true then | |
| 1083 | table.insert(alreadytouched,hit) | |
| 1084 | sound(388826051,ht.Position,10,1) | |
| 1085 | ded(hit) | |
| 1086 | end | |
| 1087 | end | |
| 1088 | end)) | |
| 1089 | end) | |
| 1090 | ||
| 1091 | function createknife() | |
| 1092 | Model0 = Instance.new("Model")
| |
| 1093 | Part1 = Instance.new("Part")
| |
| 1094 | BlockMesh2 = Instance.new("BlockMesh")
| |
| 1095 | Part3 = Instance.new("Part")
| |
| 1096 | BlockMesh4 = Instance.new("BlockMesh")
| |
| 1097 | Part5 = Instance.new("Part")
| |
| 1098 | Part6 = Instance.new("Part")
| |
| 1099 | BlockMesh7 = Instance.new("BlockMesh")
| |
| 1100 | Part8 = Instance.new("Part")
| |
| 1101 | Part9 = Instance.new("Part")
| |
| 1102 | Part10 = Instance.new("Part")
| |
| 1103 | SpecialMesh11 = Instance.new("SpecialMesh")
| |
| 1104 | Part12 = Instance.new("Part")
| |
| 1105 | Model0.Parent = char | |
| 1106 | Part1.Parent = Model0 | |
| 1107 | Part1.Anchored = true | |
| 1108 | Part1.CanCollide = false | |
| 1109 | Part1.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007) | |
| 1110 | Part1.CFrame = CFrame.new(49.5, 20.7350044, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 1111 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 1112 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 1113 | Part1.Position = Vector3.new(49.5, 20.7350044, 52.3199997) | |
| 1114 | Part1.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
| 1115 | BlockMesh2.Parent = Part1 | |
| 1116 | BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
| 1117 | BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
| 1118 | Part3.Parent = Model0 | |
| 1119 | Part3.Anchored = true | |
| 1120 | Part3.CanCollide = false | |
| 1121 | Part3.Size = Vector3.new(0.220000014, 0.0500000007, 0.0500000007) | |
| 1122 | Part3.CFrame = CFrame.new(49.5, 20.6250038, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 1123 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
| 1124 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
| 1125 | Part3.Position = Vector3.new(49.5, 20.6250038, 53.6199989) | |
| 1126 | Part3.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
| 1127 | BlockMesh4.Parent = Part3 | |
| 1128 | BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
| 1129 | BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
| 1130 | Part5.Parent = Model0 | |
| 1131 | Part5.Anchored = true | |
| 1132 | Part5.CanCollide = false | |
| 1133 | Part5.Size = Vector3.new(0.159999996, 0.400000006, 1.70000005) | |
| 1134 | Part5.CFrame = CFrame.new(49.5, 20.5750046, 51.4300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 1135 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
| 1136 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
| 1137 | Part5.Position = Vector3.new(49.5, 20.5750046, 51.4300003) | |
| 1138 | Part5.Color = Color3.new(1, 0, 0) | |
| 1139 | Part6.Parent = Model0 | |
| 1140 | Part6.Anchored = true | |
| 1141 | Part6.CanCollide = false | |
| 1142 | Part6.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007) | |
| 1143 | Part6.CFrame = CFrame.new(49.5, 20.4150047, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 1144 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
| 1145 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
| 1146 | Part6.Position = Vector3.new(49.5, 20.4150047, 52.3199997) | |
| 1147 | Part6.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
| 1148 | BlockMesh7.Parent = Part6 | |
| 1149 | BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
| 1150 | BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
| 1151 | Part8.Name = "asd" | |
| 1152 | Part8.Parent = Model0 | |
| 1153 | Part8.Anchored = true | |
| 1154 | Part8.CanCollide = false | |
| 1155 | Part8.Size = Vector3.new(0.200000003, 0.200000003, 1.30000007) | |
| 1156 | Part8.CFrame = CFrame.new(49.5, 20.6250038, 52.9300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 1157 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
| 1158 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
| 1159 | Part8.Position = Vector3.new(49.5, 20.6250038, 52.9300003) | |
| 1160 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 1161 | Part9.Parent = Model0 | |
| 1162 | Part9.Anchored = true | |
| 1163 | Part9.CanCollide = false | |
| 1164 | Part9.Size = Vector3.new(0.200000003, 0.25999999, 0.100000039) | |
| 1165 | Part9.CFrame = CFrame.new(49.5, 20.595005, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 1166 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
| 1167 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
| 1168 | Part9.Position = Vector3.new(49.5, 20.595005, 53.6199989) | |
| 1169 | Part9.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 1170 | Part10.Parent = Model0 | |
| 1171 | Part10.Rotation = Vector3.new(0, 0, 180) | |
| 1172 | Part10.Anchored = true | |
| 1173 | Part10.CanCollide = false | |
| 1174 | Part10.Size = Vector3.new(0.159999996, 0.400000006, 0.800000012) | |
| 1175 | 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) | |
| 1176 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
| 1177 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
| 1178 | Part10.Position = Vector3.new(49.5, 20.5750046, 50.1800003) | |
| 1179 | Part10.Color = Color3.new(1, 0, 0) | |
| 1180 | SpecialMesh11.Parent = Part10 | |
| 1181 | SpecialMesh11.MeshType = Enum.MeshType.Wedge | |
| 1182 | Part12.Parent = Model0 | |
| 1183 | Part12.Anchored = true | |
| 1184 | Part12.CanCollide = false | |
| 1185 | Part12.Size = Vector3.new(0.25999999, 0.460000008, 0.100000039) | |
| 1186 | Part12.CFrame = CFrame.new(49.5, 20.5750046, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
| 1187 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
| 1188 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
| 1189 | Part12.Position = Vector3.new(49.5, 20.5750046, 52.3199997) | |
| 1190 | Part12.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 1191 | weld(Model0) | |
| 1192 | for i,v in pairs(Model0:GetChildren()) do | |
| 1193 | if v:IsA("Part") and v.Color == Color3.new(0,255,0) then
| |
| 1194 | v.Material = Enum.Material.DiamondPlate | |
| 1195 | end | |
| 1196 | end | |
| 1197 | return Model0 | |
| 1198 | end | |
| 1199 | ||
| 1200 | knife = createknife() | |
| 1201 | newWeld(rarm,knife.asd,0,-1,0) | |
| 1202 | ||
| 1203 | ---------------------------------------------------------------------------------------- | |
| 1204 | ||
| 1205 | function createpistol() | |
| 1206 | Model0 = Instance.new("Model")
| |
| 1207 | Part1 = Instance.new("Part")
| |
| 1208 | BlockMesh2 = Instance.new("BlockMesh")
| |
| 1209 | Part3 = Instance.new("Part")
| |
| 1210 | Part4 = Instance.new("Part")
| |
| 1211 | Part5 = Instance.new("Part")
| |
| 1212 | Part6 = Instance.new("Part")
| |
| 1213 | Part7 = Instance.new("Part")
| |
| 1214 | Part8 = Instance.new("Part")
| |
| 1215 | Part9 = Instance.new("Part")
| |
| 1216 | Part10 = Instance.new("Part")
| |
| 1217 | Part11 = Instance.new("Part")
| |
| 1218 | Part12 = Instance.new("Part")
| |
| 1219 | Part13 = Instance.new("Part")
| |
| 1220 | Part14 = Instance.new("Part")
| |
| 1221 | Part15 = Instance.new("Part")
| |
| 1222 | Part16 = Instance.new("Part")
| |
| 1223 | Part17 = Instance.new("Part")
| |
| 1224 | Part18 = Instance.new("Part")
| |
| 1225 | Part19 = Instance.new("Part")
| |
| 1226 | Model0.Name = "Pistol" | |
| 1227 | Model0.Parent = char | |
| 1228 | Part1.Name = "ShootPos" | |
| 1229 | Part1.Parent = Model0 | |
| 1230 | Part1.BrickColor = BrickColor.new("Bright red")
| |
| 1231 | Part1.Anchored = true | |
| 1232 | Part1.CanCollide = false | |
| 1233 | Part1.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007) | |
| 1234 | Part1.CFrame = CFrame.new(-90, 10.5000019, 13.8957434, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 1235 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 1236 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 1237 | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 1238 | Part1.Position = Vector3.new(-90, 10.5000019, 13.8957434) | |
| 1239 | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 1240 | BlockMesh2.Parent = Part1 | |
| 1241 | BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988) | |
| 1242 | BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988) | |
| 1243 | Part3.Parent = Model0 | |
| 1244 | Part3.BrickColor = BrickColor.new("White")
| |
| 1245 | Part3.Anchored = true | |
| 1246 | Part3.CanCollide = false | |
| 1247 | Part3.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007) | |
| 1248 | Part3.CFrame = CFrame.new(-90.0999985, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 1249 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
| 1250 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
| 1251 | Part3.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1252 | Part3.Position = Vector3.new(-90.0999985, 10.3750019, 13.8757429) | |
| 1253 | Part3.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1254 | Part4.Parent = Model0 | |
| 1255 | Part4.BrickColor = BrickColor.new("White")
| |
| 1256 | Part4.Anchored = true | |
| 1257 | Part4.CanCollide = false | |
| 1258 | Part4.Size = Vector3.new(0.300000012, 0.349999994, 0.0500000007) | |
| 1259 | Part4.CFrame = CFrame.new(-90, 10.2750025, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 1260 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
| 1261 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
| 1262 | Part4.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1263 | Part4.Position = Vector3.new(-90, 10.2750025, 13.8757429) | |
| 1264 | Part4.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1265 | Part5.Parent = Model0 | |
| 1266 | Part5.BrickColor = BrickColor.new("White")
| |
| 1267 | Part5.Rotation = Vector3.new(15, 0, 0) | |
| 1268 | Part5.Anchored = true | |
| 1269 | Part5.CanCollide = false | |
| 1270 | Part5.Size = Vector3.new(0.200000003, 0.25, 0.150000006) | |
| 1271 | Part5.CFrame = CFrame.new(-90, 10.4379425, 15.8274469, 1, 0, 0, 0, 0.965925753, -0.258819252, 0, 0.258819252, 0.965925753) | |
| 1272 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
| 1273 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
| 1274 | Part5.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1275 | Part5.Position = Vector3.new(-90, 10.4379425, 15.8274469) | |
| 1276 | Part5.Orientation = Vector3.new(15, 0, 0) | |
| 1277 | Part5.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1278 | Part6.Parent = Model0 | |
| 1279 | Part6.BrickColor = BrickColor.new("White")
| |
| 1280 | Part6.Anchored = true | |
| 1281 | Part6.CanCollide = false | |
| 1282 | Part6.Size = Vector3.new(0.300000012, 0.550000012, 1.89999998) | |
| 1283 | Part6.CFrame = CFrame.new(-90, 10.3750019, 14.8507433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 1284 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
| 1285 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
| 1286 | Part6.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1287 | Part6.Position = Vector3.new(-90, 10.3750019, 14.8507433) | |
| 1288 | Part6.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1289 | Part7.Parent = Model0 | |
| 1290 | Part7.BrickColor = BrickColor.new("White")
| |
| 1291 | Part7.Anchored = true | |
| 1292 | Part7.CanCollide = false | |
| 1293 | Part7.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007) | |
| 1294 | Part7.CFrame = CFrame.new(-90.0999985, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 1295 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
| 1296 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
| 1297 | Part7.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1298 | Part7.Position = Vector3.new(-90.0999985, 10.6750021, 15.6257429) | |
| 1299 | Part7.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1300 | Part8.Parent = Model0 | |
| 1301 | Part8.BrickColor = BrickColor.new("Black")
| |
| 1302 | Part8.Rotation = Vector3.new(-15, 0, 0) | |
| 1303 | Part8.Anchored = true | |
| 1304 | Part8.CanCollide = false | |
| 1305 | Part8.Size = Vector3.new(0.220000014, 0.5, 0.209999993) | |
| 1306 | Part8.CFrame = CFrame.new(-90, 9.71499538, 15.4898481, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872) | |
| 1307 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
| 1308 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
| 1309 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 1310 | Part8.Position = Vector3.new(-90, 9.71499538, 15.4898481) | |
| 1311 | Part8.Orientation = Vector3.new(-15, 0, 0) | |
| 1312 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 1313 | Part9.Parent = Model0 | |
| 1314 | Part9.BrickColor = BrickColor.new("White")
| |
| 1315 | Part9.Anchored = true | |
| 1316 | Part9.CanCollide = false | |
| 1317 | Part9.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007) | |
| 1318 | Part9.CFrame = CFrame.new(-89.9000015, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 1319 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
| 1320 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
| 1321 | Part9.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1322 | Part9.Position = Vector3.new(-89.9000015, 10.3750019, 13.8757429) | |
| 1323 | Part9.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1324 | Part10.Parent = Model0 | |
| 1325 | Part10.BrickColor = BrickColor.new("White")
| |
| 1326 | Part10.Anchored = true | |
| 1327 | Part10.CanCollide = false | |
| 1328 | Part10.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007) | |
| 1329 | Part10.CFrame = CFrame.new(-89.9000015, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 1330 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
| 1331 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
| 1332 | Part10.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1333 | Part10.Position = Vector3.new(-89.9000015, 10.6750021, 15.6257429) | |
| 1334 | Part10.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1335 | Part11.Parent = Model0 | |
| 1336 | Part11.BrickColor = BrickColor.new("White")
| |
| 1337 | Part11.Anchored = true | |
| 1338 | Part11.CanCollide = false | |
| 1339 | Part11.Size = Vector3.new(0.200000003, 0.150000006, 0.600000024) | |
| 1340 | Part11.CFrame = CFrame.new(-90, 9.37500191, 15.6007433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 1341 | Part11.BottomSurface = Enum.SurfaceType.Smooth | |
| 1342 | Part11.TopSurface = Enum.SurfaceType.Smooth | |
| 1343 | Part11.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1344 | Part11.Position = Vector3.new(-90, 9.37500191, 15.6007433) | |
| 1345 | Part11.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1346 | Part12.Parent = Model0 | |
| 1347 | Part12.BrickColor = BrickColor.new("White")
| |
| 1348 | Part12.Rotation = Vector3.new(-30, 0, 0) | |
| 1349 | Part12.Anchored = true | |
| 1350 | Part12.CanCollide = false | |
| 1351 | Part12.Size = Vector3.new(0.100000001, 0.150000006, 0.0500000007) | |
| 1352 | Part12.CFrame = CFrame.new(-90, 9.97165203, 15.1132431, 1, 0, 0, 0, 0.866025448, 0.5, 0, -0.5, 0.866025448) | |
| 1353 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
| 1354 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
| 1355 | Part12.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1356 | Part12.Position = Vector3.new(-90, 9.97165203, 15.1132431) | |
| 1357 | Part12.Orientation = Vector3.new(-30, 0, 0) | |
| 1358 | Part12.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1359 | Part13.Parent = Model0 | |
| 1360 | Part13.BrickColor = BrickColor.new("White")
| |
| 1361 | Part13.Anchored = true | |
| 1362 | Part13.CanCollide = false | |
| 1363 | Part13.Size = Vector3.new(0.300000012, 0.100000001, 0.0500000007) | |
| 1364 | Part13.CFrame = CFrame.new(-90, 10.6000023, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 1365 | Part13.BottomSurface = Enum.SurfaceType.Smooth | |
| 1366 | Part13.TopSurface = Enum.SurfaceType.Smooth | |
| 1367 | Part13.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1368 | Part13.Position = Vector3.new(-90, 10.6000023, 13.8757429) | |
| 1369 | Part13.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1370 | Part14.Parent = Model0 | |
| 1371 | Part14.BrickColor = BrickColor.new("White")
| |
| 1372 | Part14.Rotation = Vector3.new(-30, 0, 0) | |
| 1373 | Part14.Anchored = true | |
| 1374 | Part14.CanCollide = false | |
| 1375 | Part14.Size = Vector3.new(0.200000003, 0.100000001, 0.25) | |
| 1376 | Part14.CFrame = CFrame.new(-90, 10.5216522, 15.9065447, 1, 0, 0, 0, 0.866025329, 0.49999997, 0, -0.49999997, 0.866025329) | |
| 1377 | Part14.BottomSurface = Enum.SurfaceType.Smooth | |
| 1378 | Part14.TopSurface = Enum.SurfaceType.Smooth | |
| 1379 | Part14.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1380 | Part14.Position = Vector3.new(-90, 10.5216522, 15.9065447) | |
| 1381 | Part14.Orientation = Vector3.new(-30, 0, 0) | |
| 1382 | Part14.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1383 | Part15.Parent = Model0 | |
| 1384 | Part15.BrickColor = BrickColor.new("White")
| |
| 1385 | Part15.Rotation = Vector3.new(-105, 0, 0) | |
| 1386 | Part15.Anchored = true | |
| 1387 | Part15.CanCollide = false | |
| 1388 | Part15.Size = Vector3.new(0.100000001, 0.200000003, 0.0500000007) | |
| 1389 | Part15.CFrame = CFrame.new(-90, 9.92812252, 15.2373915, 1, 0, 0, 0, -0.258819371, 0.965925813, 0, -0.965925813, -0.258819371) | |
| 1390 | Part15.BottomSurface = Enum.SurfaceType.Smooth | |
| 1391 | Part15.TopSurface = Enum.SurfaceType.Smooth | |
| 1392 | Part15.Color = Color3.new(0.94902, 0.952941, 0.952941) | |
| 1393 | Part15.Position = Vector3.new(-90, 9.92812252, 15.2373915) | |
| 1394 | Part15.Orientation = Vector3.new(-75, 180, 180) | |
| 1395 | Part15.Color = Color3.new(0.94902, 0.952941, 0.952941) | |
| 1396 | Part16.Name = "asd" | |
| 1397 | Part16.Parent = Model0 | |
| 1398 | Part16.BrickColor = BrickColor.new("White")
| |
| 1399 | Part16.Rotation = Vector3.new(-15, 0, 0) | |
| 1400 | Part16.Anchored = true | |
| 1401 | Part16.CanCollide = false | |
| 1402 | Part16.Size = Vector3.new(0.200000003, 1.14999998, 0.400000006) | |
| 1403 | Part16.CFrame = CFrame.new(-90, 9.93709087, 15.5425692, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872) | |
| 1404 | Part16.BottomSurface = Enum.SurfaceType.Smooth | |
| 1405 | Part16.TopSurface = Enum.SurfaceType.Smooth | |
| 1406 | Part16.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1407 | Part16.Position = Vector3.new(-90, 9.93709087, 15.5425692) | |
| 1408 | Part16.Orientation = Vector3.new(-15, 0, 0) | |
| 1409 | Part16.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1410 | Part17.Parent = Model0 | |
| 1411 | Part17.BrickColor = BrickColor.new("White")
| |
| 1412 | Part17.Anchored = true | |
| 1413 | Part17.CanCollide = false | |
| 1414 | Part17.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007) | |
| 1415 | Part17.CFrame = CFrame.new(-90, 10.0500021, 15.0757437, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 1416 | Part17.BottomSurface = Enum.SurfaceType.Smooth | |
| 1417 | Part17.TopSurface = Enum.SurfaceType.Smooth | |
| 1418 | Part17.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1419 | Part17.Position = Vector3.new(-90, 10.0500021, 15.0757437) | |
| 1420 | Part17.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1421 | Part18.Parent = Model0 | |
| 1422 | Part18.BrickColor = BrickColor.new("Pearl")
| |
| 1423 | Part18.Anchored = true | |
| 1424 | Part18.CanCollide = false | |
| 1425 | Part18.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007) | |
| 1426 | Part18.CFrame = CFrame.new(-90, 10.6750021, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 1427 | Part18.BottomSurface = Enum.SurfaceType.Smooth | |
| 1428 | Part18.TopSurface = Enum.SurfaceType.Smooth | |
| 1429 | Part18.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1430 | Part18.Position = Vector3.new(-90, 10.6750021, 13.8757429) | |
| 1431 | Part18.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1432 | Part19.Parent = Model0 | |
| 1433 | Part19.BrickColor = BrickColor.new("Pearl")
| |
| 1434 | Part19.Anchored = true | |
| 1435 | Part19.CanCollide = false | |
| 1436 | Part19.Size = Vector3.new(0.400000006, 0.200000003, 1.05000007) | |
| 1437 | Part19.CFrame = CFrame.new(-90, 10.1500015, 14.4757433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
| 1438 | Part19.BottomSurface = Enum.SurfaceType.Smooth | |
| 1439 | Part19.TopSurface = Enum.SurfaceType.Smooth | |
| 1440 | Part19.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1441 | Part19.Position = Vector3.new(-90, 10.1500015, 14.4757433) | |
| 1442 | Part19.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
| 1443 | for i,v in pairs(Model0:GetChildren()) do | |
| 1444 | if v:IsA("Part") then
| |
| 1445 | v.Color = Color3.new(1,1,0) | |
| 1446 | v.Material = Enum.Material.Slate | |
| 1447 | v.Transparency = 0 | |
| 1448 | v.CanCollide = false | |
| 1449 | end | |
| 1450 | end | |
| 1451 | weld(Model0) | |
| 1452 | return Model0 | |
| 1453 | end | |
| 1454 | ||
| 1455 | mode = "determination" | |
| 1456 | function justice() | |
| 1457 | mode = "justice" | |
| 1458 | for i=1,5 do rs:wait() | |
| 1459 | local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000) | |
| 1460 | Effect(Enum.MeshType.Brick,Vector3.new(1,1,1),0,Enum.Material.Slate,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) | |
| 1461 | end | |
| 1462 | knife:Destroy() | |
| 1463 | pistol = createpistol() | |
| 1464 | newWeld(rarm,pistol.asd,0,-1,0) | |
| 1465 | pistol.asd.Weld.C1 = CFrame.Angles(math.rad(110),0,0) | |
| 1466 | end | |
| 1467 | ||
| 1468 | function determination() | |
| 1469 | mode = "determination" | |
| 1470 | for i=1,5 do rs:wait() | |
| 1471 | local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000) | |
| 1472 | Effect(Enum.MeshType.Brick,Vector3.new(1,1,1),0,Enum.Material.DiamondPlate,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) | |
| 1473 | end | |
| 1474 | pistol:Destroy() | |
| 1475 | knife = createknife() | |
| 1476 | newWeld(rarm,knife.asd,0,-1,0) | |
| 1477 | end | |
| 1478 | ||
| 1479 | debounce = false | |
| 1480 | mouse.KeyDown:connect(function(key) | |
| 1481 | if debounce == false then | |
| 1482 | debounce = true | |
| 1483 | if key == "e" then | |
| 1484 | sound(462606062,root.Position,10,1) | |
| 1485 | if mode == "determination" then | |
| 1486 | justice() | |
| 1487 | elseif mode == "justice" then | |
| 1488 | determination() | |
| 1489 | end | |
| 1490 | end | |
| 1491 | delay(0.3,function() debounce = false end) | |
| 1492 | end | |
| 1493 | end) | |
| 1494 | ||
| 1495 | ---------------------------------------------------------------------------------------- | |
| 1496 | ||
| 1497 | function slash() | |
| 1498 | local spd = 0.2 | |
| 1499 | for i=1,15 do rs:wait() | |
| 1500 | 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) | |
| 1501 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(-30),math.rad(0)), spd) | |
| 1502 | 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) | |
| 1503 | 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) | |
| 1504 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(-50),math.rad(10)), spd) | |
| 1505 | 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) | |
| 1506 | 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) | |
| 1507 | end | |
| 1508 | sound(357417055,root.Position,10,1) | |
| 1509 | attacking = true | |
| 1510 | local spd = 0.4 | |
| 1511 | for i=1,5 do rs:wait() | |
| 1512 | 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) | |
| 1513 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(0)), spd) | |
| 1514 | 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) | |
| 1515 | 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) | |
| 1516 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(-20)), spd) | |
| 1517 | 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) | |
| 1518 | 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) | |
| 1519 | end | |
| 1520 | end | |
| 1521 | ||
| 1522 | mouse.Button1Down:connect(function() | |
| 1523 | if debounce == false and mode == "determination" then | |
| 1524 | alreadytouched = {}
| |
| 1525 | noidle = true | |
| 1526 | debounce = true | |
| 1527 | slash() | |
| 1528 | attacking = false | |
| 1529 | noidle = false | |
| 1530 | delay(0.05,function() debounce = false end) | |
| 1531 | end | |
| 1532 | end) | |
| 1533 | ||
| 1534 | ----------------------------- | |
| 1535 | local jumped = false | |
| 1536 | function boom() | |
| 1537 | freeze = true | |
| 1538 | sound(446961725,root.Position,10,1) | |
| 1539 | local bg = Instance.new("BodyGyro",root)
| |
| 1540 | bg.Name = "noh" | |
| 1541 | bg.P = 10000 | |
| 1542 | bg.D = 100 | |
| 1543 | bg.MaxTorque = Vector3.new(9e9,9e9,9e9) | |
| 1544 | if jumped == false then | |
| 1545 | root.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
| 1546 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
| 1547 | else | |
| 1548 | root.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
| 1549 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
| 1550 | end | |
| 1551 | ||
| 1552 | local spd = 0.2 | |
| 1553 | for i=1,20 do rs:wait() | |
| 1554 | if jumped == false then | |
| 1555 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
| 1556 | else | |
| 1557 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
| 1558 | end | |
| 1559 | 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) | |
| 1560 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
| 1561 | 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) | |
| 1562 | 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) | |
| 1563 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
| 1564 | 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) | |
| 1565 | 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) | |
| 1566 | end | |
| 1567 | ||
| 1568 | bg:Destroy() | |
| 1569 | ||
| 1570 | sound(470245800,root.Position,10,1) | |
| 1571 | ||
| 1572 | local Part0 = Instance.new("Part",DebrisModel)
| |
| 1573 | Part0.Name = "Bullet" | |
| 1574 | Part0.Material = Enum.Material.Slate | |
| 1575 | Part0.Color = Color3.new(1,1,0) | |
| 1576 | Part0.Anchored = true | |
| 1577 | local mesh = Instance.new("SpecialMesh",Part0)
| |
| 1578 | mesh.MeshType = Enum.MeshType.Brick | |
| 1579 | Part0.CanCollide = false | |
| 1580 | local Position = rarm.Position | |
| 1581 | local Target = mouse.Hit.p | |
| 1582 | local direction = Target - Position | |
| 1583 | local direction = computeDirection(direction) | |
| 1584 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
| 1585 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
| 1586 | Part0.Size = Vector3.new(5,1,5) | |
| 1587 | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude+5,1) | |
| 1588 | local pos = Position + (direction * (mesh.Scale.Y/2)) | |
| 1589 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
| 1590 | local loop = nil | |
| 1591 | local i = 0 | |
| 1592 | rs:connect(function() | |
| 1593 | local lole = (i/10) | |
| 1594 | mesh.Scale = Vector3.new(lole,mesh.Scale.Y,lole) | |
| 1595 | Part0.Transparency = Part0.Transparency + 0.1 | |
| 1596 | i = i + 1 | |
| 1597 | if Part0.Transparency >= 1 then | |
| 1598 | Part0:Destroy() | |
| 1599 | end | |
| 1600 | end) | |
| 1601 | ||
| 1602 | if part and part.Parent:FindFirstChildOfClass("Humanoid") and checkIfNotPlayer(part) == true then
| |
| 1603 | coroutine.resume(coroutine.create(function() | |
| 1604 | sound(388826051,part.Position,10,1) | |
| 1605 | ded(part.Parent) | |
| 1606 | end)) | |
| 1607 | end | |
| 1608 | ||
| 1609 | local spd = 0.5 | |
| 1610 | for i=1,10 do rs:wait() | |
| 1611 | 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) | |
| 1612 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
| 1613 | 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) | |
| 1614 | 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) | |
| 1615 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
| 1616 | 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) | |
| 1617 | 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) | |
| 1618 | end | |
| 1619 | ||
| 1620 | freeze = false | |
| 1621 | ||
| 1622 | end | |
| 1623 | ||
| 1624 | mouse.Button1Down:connect(function() | |
| 1625 | if debounce == false and mode == "justice" then | |
| 1626 | alreadytouched = {}
| |
| 1627 | noidle = true | |
| 1628 | debounce = true | |
| 1629 | boom() | |
| 1630 | attacking = false | |
| 1631 | noidle = false | |
| 1632 | delay(0.05,function() debounce = false end) | |
| 1633 | end | |
| 1634 | end) | |
| 1635 | ||
| 1636 | ---------------------------------------------------------------------------------------- | |
| 1637 | velocityYFall=0 | |
| 1638 | velocityYFall2=0 | |
| 1639 | velocityYFall3=0 | |
| 1640 | velocityYFall4=0 | |
| 1641 | neckrotY=0 | |
| 1642 | neckrotY2=0 | |
| 1643 | torsorotY=0 | |
| 1644 | torsorotY2=0 | |
| 1645 | torsoY=0 | |
| 1646 | torsoY2=0 | |
| 1647 | colored = 0 | |
| 1648 | sine = 0 | |
| 1649 | change=0.4 | |
| 1650 | movement=5 | |
| 1651 | timeranim=0 | |
| 1652 | running = false | |
| 1653 | glitched = false | |
| 1654 | backup = hed.Weld.C1 | |
| 1655 | glitchedC1 = hed.Weld.C1 | |
| 1656 | ||
| 1657 | mouse.KeyDown:connect(function(key) | |
| 1658 | key = string.lower(key) | |
| 1659 | if string.byte(key) == 48 then | |
| 1660 | running = true | |
| 1661 | local keyup = mouse.KeyUp:connect(function(key) | |
| 1662 | if string.byte(key) == 48 then | |
| 1663 | running = false | |
| 1664 | end | |
| 1665 | end) | |
| 1666 | repeat rs:wait() until running == false | |
| 1667 | keyup:disconnect() | |
| 1668 | end | |
| 1669 | end) | |
| 1670 | ||
| 1671 | icolor=1 | |
| 1672 | imode=false | |
| 1673 | ||
| 1674 | didjump = false | |
| 1675 | jumppower = 0 | |
| 1676 | freeze = false | |
| 1677 | debounceimpact = false | |
| 1678 | ||
| 1679 | function jumpimpact() | |
| 1680 | if debounceimpact == false then | |
| 1681 | debounceimpact = true | |
| 1682 | if jumppower < -150 then jumppower = -150 end | |
| 1683 | shake(-jumppower/5) | |
| 1684 | for i=1,-jumppower/20 do rs:wait() | |
| 1685 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.05) | |
| 1686 | 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) | |
| 1687 | end | |
| 1688 | debounceimpact = false | |
| 1689 | end | |
| 1690 | end | |
| 1691 | ||
| 1692 | local sond = nil | |
| 1693 | rs:connect(function() | |
| 1694 | ||
| 1695 | if not torso:FindFirstChild("STATICSOUND") then
| |
| 1696 | sond=Instance.new("Sound",torso)
| |
| 1697 | sond.Name = "STATICSOUND" | |
| 1698 | sond.SoundId = "rbxassetid://333430981" | |
| 1699 | sond.Looped = true | |
| 1700 | sond:Play() | |
| 1701 | end | |
| 1702 | ||
| 1703 | if icolor > 1 then | |
| 1704 | imode = false | |
| 1705 | elseif icolor < 0 then | |
| 1706 | imode = true | |
| 1707 | end | |
| 1708 | ||
| 1709 | if imode == true then | |
| 1710 | icolor = icolor + 0.01 | |
| 1711 | else | |
| 1712 | icolor = icolor - 0.01 | |
| 1713 | end | |
| 1714 | ||
| 1715 | for i,v in pairs(emitters) do | |
| 1716 | v.Acceleration = root.CFrame.upVector*(666/100) | |
| 1717 | end | |
| 1718 | ||
| 1719 | if p.Character.Parent == nil then | |
| 1720 | local model = Instance.new("Model")
| |
| 1721 | model.Name = p.Name | |
| 1722 | p.Character = model | |
| 1723 | for i,v in pairs(char:GetChildren()) do | |
| 1724 | v.Parent = p.Character | |
| 1725 | end | |
| 1726 | end | |
| 1727 | ||
| 1728 | char = p.Character | |
| 1729 | if p.Character.Parent ~= workspace then | |
| 1730 | p.Character.Parent = workspace | |
| 1731 | end | |
| 1732 | for i,v in pairs(char:GetChildren()) do | |
| 1733 | if v:IsA("Accoutrement") then
| |
| 1734 | if v.Handle:FindFirstChild("Mesh") then
| |
| 1735 | v.Handle:FindFirstChild("Mesh").Offset = Vector3.new()
| |
| 1736 | v.Handle.Transparency = 0 | |
| 1737 | end | |
| 1738 | elseif v:IsA("BasePart") then
| |
| 1739 | v.Anchored = false | |
| 1740 | if v:FindFirstChildOfClass("BodyPosition") then
| |
| 1741 | v:FindFirstChildOfClass("BodyPosition"):Destroy()
| |
| 1742 | end | |
| 1743 | if v:FindFirstChildOfClass("BodyVelocity") then
| |
| 1744 | v:FindFirstChildOfClass("BodyVelocity"):Destroy()
| |
| 1745 | end | |
| 1746 | if v:FindFirstChildOfClass("BodyGyro") and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then
| |
| 1747 | v:FindFirstChildOfClass("BodyGyro"):Destroy()
| |
| 1748 | end | |
| 1749 | if v:FindFirstChild("Mesh") then
| |
| 1750 | v:FindFirstChild("Mesh").Offset = Vector3.new()
| |
| 1751 | end | |
| 1752 | if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD") then | |
| 1753 | local force = Instance.new("Part",DebrisModel)
| |
| 1754 | force.Name = v.Name.."FORCEFIELD" | |
| 1755 | force.Size = v.Size+(Vector3.new(1,1,1)*0.2) | |
| 1756 | force.CanCollide = false | |
| 1757 | force.Transparency = 1 | |
| 1758 | newWeld(v,force,0,0,0) | |
| 1759 | else | |
| 1760 | if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"):FindFirstChildOfClass("Weld") then
| |
| 1761 | newWeld(v,DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"),0,0,0) | |
| 1762 | end | |
| 1763 | end | |
| 1764 | if v.Name ~= "HumanoidRootPart" then | |
| 1765 | v.Transparency = 0 | |
| 1766 | else | |
| 1767 | v.Transparency = 1 | |
| 1768 | end | |
| 1769 | end | |
| 1770 | end | |
| 1771 | ||
| 1772 | if mode == "determination" then | |
| 1773 | trail.Enabled = true | |
| 1774 | else | |
| 1775 | trail.Enabled = false | |
| 1776 | end | |
| 1777 | ||
| 1778 | if freeze == false then | |
| 1779 | if running == false then | |
| 1780 | hum.WalkSpeed = 12*size | |
| 1781 | change=0.4 | |
| 1782 | movement=5 | |
| 1783 | else | |
| 1784 | hum.WalkSpeed = (666/10)*size | |
| 1785 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5*size then | |
| 1786 | change=1 | |
| 1787 | else | |
| 1788 | change=0.4 | |
| 1789 | end | |
| 1790 | movement=15 | |
| 1791 | end | |
| 1792 | else | |
| 1793 | hum.WalkSpeed = 1 | |
| 1794 | change=0.4 | |
| 1795 | movement=5 | |
| 1796 | end | |
| 1797 | ||
| 1798 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 150 then | |
| 1799 | velocityYFall = root.Velocity.Y/1.5 | |
| 1800 | else | |
| 1801 | if -root.Velocity.Y/1.5 < -5 then | |
| 1802 | velocityYFall = 5 | |
| 1803 | elseif -root.Velocity.Y/1.5 > 150 then | |
| 1804 | velocityYFall = -150 | |
| 1805 | end | |
| 1806 | end | |
| 1807 | ||
| 1808 | if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then | |
| 1809 | velocityYFall2 = root.Velocity.Y/180 | |
| 1810 | else | |
| 1811 | if -root.Velocity.Y/180 < 0 then | |
| 1812 | velocityYFall2 = 0 | |
| 1813 | elseif -root.Velocity.Y/180 > 1.2 then | |
| 1814 | velocityYFall2 = -1.2 | |
| 1815 | end | |
| 1816 | end | |
| 1817 | ||
| 1818 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then | |
| 1819 | velocityYFall3 = root.Velocity.Y/1.5 | |
| 1820 | else | |
| 1821 | if -root.Velocity.Y/1.5 < -5 then | |
| 1822 | velocityYFall3 = 5 | |
| 1823 | elseif -root.Velocity.Y/1.5 > 50 then | |
| 1824 | velocityYFall3 = -50 | |
| 1825 | end | |
| 1826 | end | |
| 1827 | ||
| 1828 | if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then | |
| 1829 | velocityYFall4 = root.Velocity.Y/1.5 | |
| 1830 | else | |
| 1831 | if -root.Velocity.Y/180 < -5 then | |
| 1832 | velocityYFall4 = 5 | |
| 1833 | elseif -root.Velocity.Y/180 > 50 then | |
| 1834 | velocityYFall4 = -50 | |
| 1835 | end | |
| 1836 | end | |
| 1837 | ||
| 1838 | if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then | |
| 1839 | neckrotY = root.RotVelocity.Y/6 | |
| 1840 | else | |
| 1841 | if root.RotVelocity.Y/6 < -1 then | |
| 1842 | neckrotY = -1 | |
| 1843 | elseif root.RotVelocity.Y/6 > 1 then | |
| 1844 | neckrotY = 1 | |
| 1845 | end | |
| 1846 | end | |
| 1847 | ||
| 1848 | if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then | |
| 1849 | neckrotY2 = root.RotVelocity.Y/8 | |
| 1850 | else | |
| 1851 | if root.RotVelocity.Y/8 < -0.6 then | |
| 1852 | neckrotY2 = -0.6 | |
| 1853 | elseif root.RotVelocity.Y/8 > 0.6 then | |
| 1854 | neckrotY2 = 0.6 | |
| 1855 | end | |
| 1856 | end | |
| 1857 | ||
| 1858 | if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then | |
| 1859 | torsorotY = root.RotVelocity.Y/6 | |
| 1860 | else | |
| 1861 | if root.RotVelocity.Y/6 < -0.2 then | |
| 1862 | torsorotY = -0.2 | |
| 1863 | elseif root.RotVelocity.Y/6 > 0.2 then | |
| 1864 | torsorotY = 0.2 | |
| 1865 | end | |
| 1866 | end | |
| 1867 | ||
| 1868 | if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then | |
| 1869 | torsorotY2 = root.RotVelocity.Y/8 | |
| 1870 | else | |
| 1871 | if root.RotVelocity.Y/8 < -0.2 then | |
| 1872 | torsorotY2 = -0.2 | |
| 1873 | elseif root.RotVelocity.Y/8 > 0.2 then | |
| 1874 | torsorotY2 = 0.2 | |
| 1875 | end | |
| 1876 | end | |
| 1877 | ||
| 1878 | torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20 | |
| 1879 | torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36 | |
| 1880 | ||
| 1881 | local ray1 = Ray.new(root.Position+Vector3.new(size,0,0),Vector3.new(0, -4*size, 0)) | |
| 1882 | local part1, endPoint = workspace:FindPartOnRay(ray1, char) | |
| 1883 | local ray2 = Ray.new(root.Position-Vector3.new(size,0,0),Vector3.new(0, -4*size, 0)) | |
| 1884 | local part2, endPoint = workspace:FindPartOnRay(ray2, char) | |
| 1885 | local ray3 = Ray.new(root.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0)) | |
| 1886 | local part3, endPoint = workspace:FindPartOnRay(ray3, char) | |
| 1887 | local ray4 = Ray.new(root.Position-Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0)) | |
| 1888 | local part4, endPoint = workspace:FindPartOnRay(ray4, char) | |
| 1889 | local ray = Ray.new(root.Position,Vector3.new(0, -6, 0)) | |
| 1890 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
| 1891 | ||
| 1892 | if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end | |
| 1893 | ||
| 1894 | local rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0)) | |
| 1895 | local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char) | |
| 1896 | ||
| 1897 | local llegray = Ray.new(lleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0)) | |
| 1898 | local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char) | |
| 1899 | ||
| 1900 | if hum.Health > 0 and noidle == false then | |
| 1901 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then | |
| 1902 | 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) | |
| 1903 | 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) | |
| 1904 | 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) | |
| 1905 | 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) | |
| 1906 | 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) | |
| 1907 | 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) | |
| 1908 | 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) | |
| 1909 | elseif jumped == true then | |
| 1910 | didjump = true | |
| 1911 | jumppower = root.Velocity.Y | |
| 1912 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4) | |
| 1913 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-velocityYFall3/5),0,0), 0.1) | |
| 1914 | 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) | |
| 1915 | 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) | |
| 1916 | 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) | |
| 1917 | 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) | |
| 1918 | 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) | |
| 1919 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5*size then | |
| 1920 | 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) | |
| 1921 | 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) | |
| 1922 | 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) | |
| 1923 | 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) | |
| 1924 | 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) | |
| 1925 | 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) | |
| 1926 | 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) | |
| 1927 | end | |
| 1928 | end | |
| 1929 | if didjump == true and jumped == false and jumppower < 0 then | |
| 1930 | didjump = false | |
| 1931 | jumpimpact() | |
| 1932 | end | |
| 1933 | ||
| 1934 | local chance = math.random(0,10000)/100 | |
| 1935 | if chance <= 5 + (kills/2) then | |
| 1936 | if glitched == false then | |
| 1937 | backup = hed.Weld.C1 | |
| 1938 | end | |
| 1939 | if torso:FindFirstChild("MusicRuin") then
| |
| 1940 | equalizer.HighGain = 0 | |
| 1941 | equalizer.MidGain = -20 | |
| 1942 | equalizer.LowGain = -80 | |
| 1943 | end | |
| 1944 | hed.Weld.C1 = glitchedC1 | |
| 1945 | local glitch_color = Color3.fromHSV(math.random(0,1000)/1000,1,1) | |
| 1946 | hed.Color = glitch_color | |
| 1947 | torso.Color = glitch_color | |
| 1948 | rarm.Color = glitch_color | |
| 1949 | larm.Color = glitch_color | |
| 1950 | rleg.Color = glitch_color | |
| 1951 | lleg.Color = glitch_color | |
| 1952 | shake(5) | |
| 1953 | glitched = true | |
| 1954 | hed.face.Texture = "rbxassetid://1471407701" | |
| 1955 | sond:Resume() | |
| 1956 | else | |
| 1957 | if glitched == true then | |
| 1958 | glitched = false | |
| 1959 | hed.Weld.C1 = backup | |
| 1960 | glitchedC1 = backup*CFrame.Angles(math.rad(math.random(-40,40)),math.rad(math.random(-40,40)),math.rad(math.random(-20,20))) | |
| 1961 | end | |
| 1962 | if torso:FindFirstChild("MusicRuin") then
| |
| 1963 | equalizer.HighGain = 0 | |
| 1964 | equalizer.MidGain = 0 | |
| 1965 | equalizer.LowGain = 0 | |
| 1966 | end | |
| 1967 | hed.BrickColor = skin_color | |
| 1968 | torso.BrickColor = skin_color | |
| 1969 | rarm.BrickColor = skin_color | |
| 1970 | larm.BrickColor = skin_color | |
| 1971 | rleg.BrickColor = skin_color | |
| 1972 | lleg.BrickColor = skin_color | |
| 1973 | hed.face.Texture = "rbxassetid://422627909" | |
| 1974 | sond:Pause() | |
| 1975 | end | |
| 1976 | ||
| 1977 | timeposition = soundz.TimePosition | |
| 1978 | sine = sine + change | |
| 1979 | hum.Health = math.huge | |
| 1980 | hum.MaxHealth = math.huge | |
| 1981 | end) |