SHOW:
|
|
- or go back to the newest paste.
| 1 | -- This script has been converted to FE by iPxter | |
| 2 | ||
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
| |
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | math.randomseed(tick()) | |
| 88 | - | local player = game.Players.owner |
| 88 | + | local player = owner |
| 89 | local rekt = {}
| |
| 90 | local paralyzed = false | |
| 91 | local curpoint = nil | |
| 92 | local curpart = nil | |
| 93 | local finishnum = 1 | |
| 94 | local zombiemode = false | |
| 95 | local zombies = {}
| |
| 96 | local lastgui = nil | |
| 97 | ||
| 98 | function getplr(char) | |
| 99 | local plr = nil | |
| 100 | for i,v in pairs(game.Players:GetChildren()) do | |
| 101 | if v.Character == char then | |
| 102 | plr = v | |
| 103 | end | |
| 104 | end | |
| 105 | return plr | |
| 106 | end | |
| 107 | ||
| 108 | function bleed(frick) | |
| 109 | while frick.Parent ~= nil do | |
| 110 | local reeee = coroutine.wrap(function() | |
| 111 | local thing = Instance.new('Part',game.Workspace)
| |
| 112 | thing.Size = Vector3.new(0.2,0.2,0.2) | |
| 113 | thing.CFrame = frick.CFrame | |
| 114 | thing.Shape = Enum.PartType.Ball | |
| 115 | thing.CFrame = frick.CFrame | |
| 116 | thing.Transparency = 1 | |
| 117 | thing.BrickColor = BrickColor.new('Maroon')
| |
| 118 | thing.Material = Enum.Material.SmoothPlastic | |
| 119 | thing.Name = "Blood" | |
| 120 | thing.CanCollide =false | |
| 121 | local rawrxd = Instance.new('BodyForce',thing)
| |
| 122 | rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0) | |
| 123 | local coru = coroutine.wrap(function() | |
| 124 | wait(0.01) | |
| 125 | rawrxd:Destroy() | |
| 126 | end) | |
| 127 | coru() | |
| 128 | local ree = Instance.new('ParticleEmitter',thing)
| |
| 129 | ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.fromRGB(100,0,0)),ColorSequenceKeypoint.new(1,Color3.fromRGB(100,0,0))})
| |
| 130 | ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)})
| |
| 131 | ree.Texture = 'rbxassetid://867743272' | |
| 132 | ree.Lifetime = NumberRange.new(0.4) | |
| 133 | ree.Rate = 50 | |
| 134 | ree.LockedToPart = true | |
| 135 | ree.Speed = NumberRange.new(0, 2) | |
| 136 | ||
| 137 | thing.Touched:connect(function(tou) | |
| 138 | if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Name ~= "Blood" and tou.Parent.Name ~= "Projectile" and tou.Parent.Name ~= "big ass knife" and tou.Parent ~= player.Character and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= "bitch ass knife" then
| |
| 139 | local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z) | |
| 140 | thing:Destroy() | |
| 141 | if tou.Name == "BloodPuddle" then | |
| 142 | local reee = tou.CFrame | |
| 143 | if tou.Transparency > -0.2 then | |
| 144 | tou.Transparency = tou.Transparency -0.1 | |
| 145 | end | |
| 146 | if tou.Size.X < 10 then | |
| 147 | tou.Size = tou.Size+Vector3.new(0.1,0,0.1) | |
| 148 | tou.CFrame = reee | |
| 149 | end | |
| 150 | else | |
| 151 | local bloodlol = Instance.new('Part',workspace)
| |
| 152 | bloodlol.Size=Vector3.new(1,0.2,1) | |
| 153 | bloodlol.Name = "BloodPuddle" | |
| 154 | bloodlol.Anchored = true | |
| 155 | bloodlol.CanCollide = false | |
| 156 | bloodlol.Material = Enum.Material.SmoothPlastic | |
| 157 | bloodlol.BrickColor = BrickColor.new('Maroon')
| |
| 158 | local cyl = Instance.new('CylinderMesh',bloodlol)
| |
| 159 | cyl.Scale = Vector3.new(1,0.1,1) | |
| 160 | bloodlol.CFrame = CFrame.new(pos) | |
| 161 | local coru=coroutine.wrap(function() | |
| 162 | while bloodlol.Parent ~= nil do | |
| 163 | if bloodlol.Transparency < 1 then | |
| 164 | bloodlol.Transparency = bloodlol.Transparency+0.05 | |
| 165 | else | |
| 166 | bloodlol:Destroy() | |
| 167 | end | |
| 168 | wait(0.1) | |
| 169 | end | |
| 170 | end) | |
| 171 | coru() | |
| 172 | end | |
| 173 | end | |
| 174 | end) | |
| 175 | local coru = coroutine.wrap(function() | |
| 176 | wait(1) | |
| 177 | thing:Destroy() | |
| 178 | end) | |
| 179 | coru() | |
| 180 | end) | |
| 181 | reeee() | |
| 182 | wait() | |
| 183 | end | |
| 184 | end | |
| 185 | ||
| 186 | function killz(playa,hitz,kneef,explode,pool,head,charred,override) | |
| 187 | local soundy = false | |
| 188 | local heyy = hitz | |
| 189 | if hitz == "Right Arm" then | |
| 190 | local Limb = playa:FindFirstChild("Right Arm")
| |
| 191 | local ters = playa:FindFirstChild('Torso')
| |
| 192 | if Limb and ters then | |
| 193 | if ters:FindFirstChild('Right Shoulder') then ters["Right Shoulder"]:Destroy() end
| |
| 194 | for i,v in pairs(Limb:GetChildren()) do | |
| 195 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then
| |
| 196 | v:Destroy() | |
| 197 | end | |
| 198 | end | |
| 199 | Limb.CFrame = ters.CFrame * CFrame.new(1.5, 0, 0) | |
| 200 | local Joint = Instance.new("Rotate")
| |
| 201 | Joint.Name = "RightShoulder" | |
| 202 | Joint.Part0 = ters | |
| 203 | Joint.Part1 = Limb | |
| 204 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 205 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 206 | Joint.Parent = ters | |
| 207 | if charred and zombiemode == false then | |
| 208 | Limb.BrickColor = BrickColor.new('Black')
| |
| 209 | local fire = Instance.new('Fire',Limb)
| |
| 210 | fire.Heat = 5 | |
| 211 | fire.Size = 5 | |
| 212 | game:GetService('Debris'):AddItem(fire,2)
| |
| 213 | local coru=coroutine.wrap(function() | |
| 214 | wait(2) | |
| 215 | for i,v in pairs(Limb:GetChildren()) do | |
| 216 | if v:IsA('ParticleEmitter') then
| |
| 217 | v:Destroy() | |
| 218 | end | |
| 219 | end | |
| 220 | end) | |
| 221 | coru() | |
| 222 | end | |
| 223 | local B = Instance.new("Part")
| |
| 224 | B.TopSurface = 0 | |
| 225 | B.BottomSurface = 0 | |
| 226 | B.formFactor = "Symmetric" | |
| 227 | B.Size = Vector3.new(1, 1, 1) | |
| 228 | B.Transparency = 1 | |
| 229 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 230 | B.Parent = playa | |
| 231 | local W = Instance.new("Weld")
| |
| 232 | W.Part0 = Limb | |
| 233 | W.Part1 = B | |
| 234 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 235 | W.Parent = Limb | |
| 236 | if kneef then | |
| 237 | local coru = coroutine.wrap(function() | |
| 238 | local uno = Instance.new('Part',workspace)
| |
| 239 | local dos = Instance.new('Part',workspace)
| |
| 240 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 241 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 242 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 243 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 244 | weld.Part1 = kneef["big ass knife"] | |
| 245 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 246 | uno:Destroy() | |
| 247 | dos:Destroy() | |
| 248 | playa:FindFirstChild(hitz).Anchored = false | |
| 249 | for i, v in pairs(kneef:GetChildren()) do | |
| 250 | if v:IsA('BasePart') then
| |
| 251 | v.Anchored = false | |
| 252 | end | |
| 253 | end | |
| 254 | if zombiemode == false or override then | |
| 255 | wait() | |
| 256 | end | |
| 257 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 258 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 259 | end | |
| 260 | local bleedpart = Instance.new("Part", kneef)
| |
| 261 | bleedpart.CanCollide = false | |
| 262 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 263 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
| 264 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 265 | bleedpart.Transparency = 1 | |
| 266 | ||
| 267 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 268 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 269 | bleedpartweld.Part1 = bleedpart | |
| 270 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 271 | local coru = coroutine.wrap(function() | |
| 272 | bleed(bleedpart) | |
| 273 | end) | |
| 274 | coru() | |
| 275 | game:GetService('Debris'):AddItem(bleedpart,2)
| |
| 276 | end) | |
| 277 | coru() | |
| 278 | end | |
| 279 | end | |
| 280 | elseif hitz == "Left Arm" then | |
| 281 | local Limb = playa:FindFirstChild("Left Arm")
| |
| 282 | local ters = playa:FindFirstChild('Torso')
| |
| 283 | if Limb and ters then | |
| 284 | if ters:FindFirstChild('Left Shoulder') then ters["Left Shoulder"]:Destroy() end
| |
| 285 | for i,v in pairs(Limb:GetChildren()) do | |
| 286 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then
| |
| 287 | v:Destroy() | |
| 288 | end | |
| 289 | end | |
| 290 | Limb.CFrame = ters.CFrame * CFrame.new(-1.5, 0, 0) | |
| 291 | local Joint = Instance.new("Rotate")
| |
| 292 | Joint.Name = "LeftShoulder" | |
| 293 | Joint.Part0 = ters | |
| 294 | Joint.Part1 = Limb | |
| 295 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 296 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 297 | Joint.Parent = ters | |
| 298 | if charred and zombiemode == false then | |
| 299 | Limb.BrickColor = BrickColor.new('Black')
| |
| 300 | local fire = Instance.new('Fire',Limb)
| |
| 301 | fire.Heat = 5 | |
| 302 | fire.Size = 5 | |
| 303 | game:GetService('Debris'):AddItem(fire,2)
| |
| 304 | local coru=coroutine.wrap(function() | |
| 305 | wait(2) | |
| 306 | for i,v in pairs(Limb:GetChildren()) do | |
| 307 | if v:IsA('ParticleEmitter') then
| |
| 308 | v:Destroy() | |
| 309 | end | |
| 310 | end | |
| 311 | end) | |
| 312 | coru() | |
| 313 | end | |
| 314 | ||
| 315 | local B = Instance.new("Part")
| |
| 316 | B.TopSurface = 0 | |
| 317 | B.BottomSurface = 0 | |
| 318 | B.formFactor = "Symmetric" | |
| 319 | B.Size = Vector3.new(1, 1, 1) | |
| 320 | B.CanCollide = true | |
| 321 | B.Transparency = 1 | |
| 322 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 323 | B.Parent = playa | |
| 324 | local W = Instance.new("Weld")
| |
| 325 | W.Part0 = ters | |
| 326 | W.Part1 = B | |
| 327 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 328 | W.Parent = Limb | |
| 329 | if kneef then | |
| 330 | local coru = coroutine.wrap(function() | |
| 331 | local uno = Instance.new('Part',workspace)
| |
| 332 | local dos = Instance.new('Part',workspace)
| |
| 333 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 334 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 335 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 336 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 337 | weld.Part1 = kneef["big ass knife"] | |
| 338 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 339 | uno:Destroy() | |
| 340 | dos:Destroy() | |
| 341 | playa:FindFirstChild(hitz).Anchored = false | |
| 342 | for i, v in pairs(kneef:GetChildren()) do | |
| 343 | if v:IsA('BasePart') then
| |
| 344 | v.Anchored = false | |
| 345 | end | |
| 346 | end | |
| 347 | if zombiemode == false or override then | |
| 348 | wait() | |
| 349 | end | |
| 350 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 351 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 352 | end | |
| 353 | local bleedpart = Instance.new("Part", kneef)
| |
| 354 | bleedpart.CanCollide = false | |
| 355 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 356 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
| 357 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 358 | bleedpart.Transparency = 1 | |
| 359 | ||
| 360 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 361 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 362 | bleedpartweld.Part1 = bleedpart | |
| 363 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 364 | local coru = coroutine.wrap(function() | |
| 365 | bleed(bleedpart) | |
| 366 | end) | |
| 367 | coru() | |
| 368 | game:GetService('Debris'):AddItem(bleedpart,2)
| |
| 369 | end) | |
| 370 | coru() | |
| 371 | end | |
| 372 | end | |
| 373 | elseif hitz == "Right Leg" then | |
| 374 | local Limb = playa:FindFirstChild("Right Leg")
| |
| 375 | local ters = playa:FindFirstChild('Torso')
| |
| 376 | if Limb and ters then | |
| 377 | if ters:FindFirstChild('Right Hip') then ters["Right Hip"]:Destroy() end
| |
| 378 | for i,v in pairs(Limb:GetChildren()) do | |
| 379 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then
| |
| 380 | v:Destroy() | |
| 381 | end | |
| 382 | end | |
| 383 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
| 384 | local Joint = Instance.new("Rotate")
| |
| 385 | Joint.Name = "Right Hip" | |
| 386 | Joint.Part0 = ters | |
| 387 | Joint.Part1 = Limb | |
| 388 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 389 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 390 | Joint.Parent = ters | |
| 391 | if charred and zombiemode == false then | |
| 392 | Limb.BrickColor = BrickColor.new('Black')
| |
| 393 | local fire = Instance.new('Fire',Limb)
| |
| 394 | fire.Heat = 5 | |
| 395 | fire.Size = 5 | |
| 396 | game:GetService('Debris'):AddItem(fire,2)
| |
| 397 | local coru=coroutine.wrap(function() | |
| 398 | wait(2) | |
| 399 | for i,v in pairs(Limb:GetChildren()) do | |
| 400 | if v:IsA('ParticleEmitter') then
| |
| 401 | v:Destroy() | |
| 402 | end | |
| 403 | end | |
| 404 | end) | |
| 405 | coru() | |
| 406 | end | |
| 407 | local B = Instance.new("Part")
| |
| 408 | B.TopSurface = 0 | |
| 409 | B.BottomSurface = 0 | |
| 410 | B.formFactor = "Symmetric" | |
| 411 | B.Size = Vector3.new(1, 1, 1) | |
| 412 | B.Transparency = 1 | |
| 413 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 414 | B.Parent = playa | |
| 415 | local W = Instance.new("Weld")
| |
| 416 | W.Part0 = Limb | |
| 417 | W.Part1 = B | |
| 418 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 419 | W.Parent = Limb | |
| 420 | if kneef then | |
| 421 | local coru = coroutine.wrap(function() | |
| 422 | local uno = Instance.new('Part',workspace)
| |
| 423 | local dos = Instance.new('Part',workspace)
| |
| 424 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 425 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 426 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 427 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 428 | weld.Part1 = kneef["big ass knife"] | |
| 429 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 430 | uno:Destroy() | |
| 431 | dos:Destroy() | |
| 432 | playa:FindFirstChild(hitz).Anchored = false | |
| 433 | for i, v in pairs(kneef:GetChildren()) do | |
| 434 | if v:IsA('BasePart') then
| |
| 435 | v.Anchored = false | |
| 436 | end | |
| 437 | end | |
| 438 | if zombiemode == false or override then | |
| 439 | wait() | |
| 440 | end | |
| 441 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 442 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 443 | end | |
| 444 | local bleedpart = Instance.new("Part", kneef)
| |
| 445 | bleedpart.CanCollide = false | |
| 446 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 447 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
| 448 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 449 | bleedpart.Transparency = 1 | |
| 450 | ||
| 451 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 452 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 453 | bleedpartweld.Part1 = bleedpart | |
| 454 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 455 | local coru = coroutine.wrap(function() | |
| 456 | bleed(bleedpart) | |
| 457 | end) | |
| 458 | coru() | |
| 459 | game:GetService('Debris'):AddItem(bleedpart,2)
| |
| 460 | end) | |
| 461 | coru() | |
| 462 | end | |
| 463 | if playa then | |
| 464 | table.insert(rekt,playa) | |
| 465 | end | |
| 466 | end | |
| 467 | elseif hitz == "Left Leg" then | |
| 468 | local Limb = playa:FindFirstChild("Left Leg")
| |
| 469 | local ters = playa:FindFirstChild('Torso')
| |
| 470 | if Limb and ters then | |
| 471 | if ters:FindFirstChild('Left Hip') then ters["Left Hip"]:Destroy() end
| |
| 472 | for i,v in pairs(Limb:GetChildren()) do | |
| 473 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then
| |
| 474 | v:Destroy() | |
| 475 | end | |
| 476 | end | |
| 477 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
| 478 | Limb.CFrame = ters.CFrame * CFrame.new(-0.5, -2, 0) | |
| 479 | local Joint = Instance.new("Rotate")
| |
| 480 | Joint.Name = "LeftHip" | |
| 481 | Joint.Part0 = ters | |
| 482 | Joint.Part1 = Limb | |
| 483 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 484 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 485 | Joint.Parent = ters | |
| 486 | if charred and zombiemode == false then | |
| 487 | Limb.BrickColor = BrickColor.new('Black')
| |
| 488 | local fire = Instance.new('Fire',Limb)
| |
| 489 | fire.Heat = 5 | |
| 490 | fire.Size = 5 | |
| 491 | game:GetService('Debris'):AddItem(fire,2)
| |
| 492 | local coru=coroutine.wrap(function() | |
| 493 | wait(2) | |
| 494 | for i,v in pairs(Limb:GetChildren()) do | |
| 495 | if v:IsA('ParticleEmitter') then
| |
| 496 | v:Destroy() | |
| 497 | end | |
| 498 | end | |
| 499 | end) | |
| 500 | coru() | |
| 501 | end | |
| 502 | ||
| 503 | local B = Instance.new("Part")
| |
| 504 | B.TopSurface = 0 | |
| 505 | B.BottomSurface = 0 | |
| 506 | B.formFactor = "Symmetric" | |
| 507 | B.Size = Vector3.new(1, 1, 1) | |
| 508 | B.Transparency = 1 | |
| 509 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 510 | B.Parent = playa | |
| 511 | local W = Instance.new("Weld")
| |
| 512 | W.Part0 = Limb | |
| 513 | W.Part1 = B | |
| 514 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 515 | W.Parent = Limb | |
| 516 | Limb.CanCollide = false | |
| 517 | if kneef then | |
| 518 | local coru = coroutine.wrap(function() | |
| 519 | local uno = Instance.new('Part',workspace)
| |
| 520 | local dos = Instance.new('Part',workspace)
| |
| 521 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 522 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 523 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 524 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 525 | weld.Part1 = kneef["big ass knife"] | |
| 526 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 527 | uno:Destroy() | |
| 528 | dos:Destroy() | |
| 529 | playa:FindFirstChild(hitz).Anchored = false | |
| 530 | for i, v in pairs(kneef:GetChildren()) do | |
| 531 | if v:IsA('BasePart') then
| |
| 532 | v.Anchored = false | |
| 533 | end | |
| 534 | end | |
| 535 | if zombiemode == false or override then | |
| 536 | wait() | |
| 537 | end | |
| 538 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 539 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 540 | end | |
| 541 | local bleedpart = Instance.new("Part", kneef)
| |
| 542 | bleedpart.CanCollide = false | |
| 543 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 544 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
| 545 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 546 | bleedpart.Transparency = 1 | |
| 547 | ||
| 548 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 549 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 550 | bleedpartweld.Part1 = bleedpart | |
| 551 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 552 | local coru = coroutine.wrap(function() | |
| 553 | bleed(bleedpart) | |
| 554 | end) | |
| 555 | coru() | |
| 556 | game:GetService('Debris'):AddItem(bleedpart,2)
| |
| 557 | end) | |
| 558 | coru() | |
| 559 | end | |
| 560 | if playa then | |
| 561 | table.insert(rekt,playa) | |
| 562 | end | |
| 563 | end | |
| 564 | elseif playa then | |
| 565 | if finishnum ~= 1 then | |
| 566 | local coru=coroutine.wrap(function() | |
| 567 | player.Character.Head.Psycho.Playing = true | |
| 568 | wait(3) | |
| 569 | player.Character.Head.Psycho.Playing = false | |
| 570 | end) | |
| 571 | coru() | |
| 572 | end | |
| 573 | local playa2 = playa | |
| 574 | playa.Archivable = true | |
| 575 | local playa = playa:Clone() | |
| 576 | playa.Archivable = false | |
| 577 | playa2:Destroy() | |
| 578 | playa.Parent = workspace | |
| 579 | local Gibs = game.Workspace | |
| 580 | local Torso = playa.Torso | |
| 581 | local Head = playa:FindFirstChild("Head")
| |
| 582 | local function Scan(ch) | |
| 583 | local e | |
| 584 | for e = 1,#ch do | |
| 585 | Scan(ch[e]:GetChildren()) | |
| 586 | if (ch[e].ClassName == "Weld" and ch[e]:FindFirstChild('Part1') and ch[e].Part1.Name ~= 'Projectile') or ch[e].ClassName == "Motor6D" or ch[e].ClassName == "Rotate" or (ch[e]:IsA('BasePart') and ch[e].Size == Vector3.new(1, 1, 1)) then
| |
| 587 | ch[e]:remove() | |
| 588 | end | |
| 589 | end | |
| 590 | end | |
| 591 | Scan(playa:GetChildren()) | |
| 592 | if playa:FindFirstChild('HumanoidRootPart') and (zombiemode == false or override) then
| |
| 593 | playa:FindFirstChild('HumanoidRootPart'):Destroy()
| |
| 594 | end | |
| 595 | local hum2 = playa:FindFirstChildOfClass("Humanoid")
| |
| 596 | if zombiemode == true and override == false then | |
| 597 | soundy = true | |
| 598 | end | |
| 599 | if string.sub(hum2.Parent.Name,string.len(hum2.Parent.Name)-8,string.len(hum2.Parent.Name)) ~= "'s Zombie" then | |
| 600 | override = true | |
| 601 | end | |
| 602 | if hum2 ~= nil then | |
| 603 | hum2.Name = "Humanoid2" | |
| 604 | hum2.Health = 0 | |
| 605 | if zombiemode == false or override == true then | |
| 606 | table.insert(rekt,hum2.Parent) | |
| 607 | else | |
| 608 | local gyro = Instance.new('BodyGyro',Torso)
| |
| 609 | hum2.PlatformStand = false | |
| 610 | for i,v in pairs(hum2.Parent.Torso:GetChildren()) do | |
| 611 | if v:IsA('BodyGyro') then v:Destroy() end
| |
| 612 | end | |
| 613 | if playa:FindFirstChild('HumanoidRootPart') then
| |
| 614 | hum2.Parent.HumanoidRootPart.CFrame = hum2.Parent.Torso.CFrame | |
| 615 | local weldcrucial = Instance.new('Weld',hum2.Parent.HumanoidRootPart)
| |
| 616 | weldcrucial.Part0 = hum2.Parent.HumanoidRootPart | |
| 617 | weldcrucial.Part1 = hum2.Parent.Torso | |
| 618 | end | |
| 619 | end | |
| 620 | end | |
| 621 | local ch = playa:GetChildren() | |
| 622 | local i | |
| 623 | for i = 1,#ch do | |
| 624 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
| 625 | ch[i]:remove() | |
| 626 | end | |
| 627 | end | |
| 628 | ||
| 629 | if Head then | |
| 630 | local Neck = Instance.new("Weld")
| |
| 631 | Neck.Name = "Neck" | |
| 632 | Neck.Part0 = Torso | |
| 633 | Neck.Part1 = Head | |
| 634 | if pool then | |
| 635 | local part = Instance.new('Part',Torso)
| |
| 636 | part.Position = Vector3.new(0,10,0) | |
| 637 | part.Size = Vector3.new(0.2,0.2,0.2) | |
| 638 | part.Transparency = 1 | |
| 639 | part.CanCollide = false | |
| 640 | local we = Instance.new('Weld',Torso)
| |
| 641 | we.Part0 = Torso | |
| 642 | we.Part1 = part | |
| 643 | we.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 644 | local coru=coroutine.wrap(function() | |
| 645 | bleed(part) | |
| 646 | end) | |
| 647 | coru() | |
| 648 | end | |
| 649 | if head == false or head == nil then | |
| 650 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 651 | else | |
| 652 | Neck.C0 = CFrame.new(0, 1.5, 0.2)*CFrame.Angles(0.5, 0.25, 0.25) | |
| 653 | local bleedpart = Instance.new("Part", Torso)
| |
| 654 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 655 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 656 | bleedpart.CanCollide = false | |
| 657 | bleedpart.Position = Head.Position + Vector3.new(0, 1, 0) | |
| 658 | bleedpart.Transparency = 1 | |
| 659 | ||
| 660 | local bleedpartweld = Instance.new("Weld", Torso)
| |
| 661 | bleedpartweld.Part0 = Torso | |
| 662 | bleedpartweld.Part1 = bleedpart | |
| 663 | bleedpartweld.C0 = CFrame.Angles(-1, 0, -0.35) * CFrame.new(0, 1, 0.8) | |
| 664 | local coru = coroutine.wrap(function() | |
| 665 | bleed(bleedpart) | |
| 666 | end) | |
| 667 | coru() | |
| 668 | end | |
| 669 | Neck.C1 = CFrame.new() | |
| 670 | Neck.Parent = Torso | |
| 671 | end | |
| 672 | local Limb = playa:FindFirstChild("Right Arm")
| |
| 673 | if Limb then | |
| 674 | ||
| 675 | Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0) | |
| 676 | local Joint = Instance.new("Rotate")
| |
| 677 | Joint.Name = "RightShoulder" | |
| 678 | Joint.Part0 = Torso | |
| 679 | Joint.Part1 = Limb | |
| 680 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 681 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 682 | Joint.Parent = Torso | |
| 683 | ||
| 684 | local B = Instance.new("Part")
| |
| 685 | B.TopSurface = 0 | |
| 686 | B.BottomSurface = 0 | |
| 687 | B.formFactor = "Symmetric" | |
| 688 | B.Size = Vector3.new(1, 1, 1) | |
| 689 | B.Transparency = 1 | |
| 690 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 691 | B.Parent = playa | |
| 692 | local W = Instance.new("Weld")
| |
| 693 | W.Part0 = Limb | |
| 694 | W.Part1 = B | |
| 695 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 696 | W.Parent = Limb | |
| 697 | end | |
| 698 | local Limb = playa:FindFirstChild("Left Arm")
| |
| 699 | if Limb then | |
| 700 | ||
| 701 | Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0) | |
| 702 | local Joint = Instance.new("Rotate")
| |
| 703 | Joint.Name = "LeftShoulder" | |
| 704 | Joint.Part0 = Torso | |
| 705 | Joint.Part1 = Limb | |
| 706 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 707 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 708 | Joint.Parent = Torso | |
| 709 | ||
| 710 | local B = Instance.new("Part")
| |
| 711 | B.TopSurface = 0 | |
| 712 | B.BottomSurface = 0 | |
| 713 | B.formFactor = "Symmetric" | |
| 714 | B.Size = Vector3.new(1, 1, 1) | |
| 715 | B.Transparency = 1 | |
| 716 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 717 | B.Parent = playa | |
| 718 | local W = Instance.new("Weld")
| |
| 719 | W.Part0 = Limb | |
| 720 | W.Part1 = B | |
| 721 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 722 | W.Parent = Limb | |
| 723 | end | |
| 724 | local Limb = playa:FindFirstChild("Right Leg")
| |
| 725 | if Limb then | |
| 726 | Limb.CanCollide = false | |
| 727 | Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0) | |
| 728 | local Joint = Instance.new("Rotate")
| |
| 729 | Joint.Name = "RightHip" | |
| 730 | Joint.Part0 = Torso | |
| 731 | Joint.Part1 = Limb | |
| 732 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 733 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 734 | Joint.Parent = Torso | |
| 735 | ||
| 736 | local B = Instance.new("Part")
| |
| 737 | B.TopSurface = 0 | |
| 738 | B.BottomSurface = 0 | |
| 739 | B.formFactor = "Symmetric" | |
| 740 | B.Size = Vector3.new(1, 1, 1) | |
| 741 | B.Transparency = 1 | |
| 742 | B.CanCollide = true | |
| 743 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 744 | B.Parent = playa | |
| 745 | local W = Instance.new("Weld")
| |
| 746 | W.Part0 = Limb | |
| 747 | W.Part1 = B | |
| 748 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 749 | W.Parent = Limb | |
| 750 | end | |
| 751 | local Limb = playa:FindFirstChild("Left Leg")
| |
| 752 | if Limb then | |
| 753 | Limb.CanCollide = false | |
| 754 | Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0) | |
| 755 | local Joint = Instance.new("Rotate")
| |
| 756 | Joint.Name = "LeftHip" | |
| 757 | Joint.Part0 = Torso | |
| 758 | Joint.Part1 = Limb | |
| 759 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 760 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 761 | Joint.Parent = Torso | |
| 762 | ||
| 763 | local B = Instance.new("Part")
| |
| 764 | B.TopSurface = 0 | |
| 765 | B.BottomSurface = 0 | |
| 766 | if zombiemode == false or override then | |
| 767 | B.CanCollide = true | |
| 768 | end | |
| 769 | B.formFactor = "Symmetric" | |
| 770 | B.Size = Vector3.new(1, 1, 1) | |
| 771 | B.Transparency = 1 | |
| 772 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 773 | B.Parent = playa | |
| 774 | local W = Instance.new("Weld")
| |
| 775 | W.Part0 = Limb | |
| 776 | W.Part1 = B | |
| 777 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 778 | W.Parent = Limb | |
| 779 | end | |
| 780 | --[[ | |
| 781 | local Bar = Instance.new("Part")
| |
| 782 | Bar.TopSurface = 0 | |
| 783 | Bar.BottomSurface = 0 | |
| 784 | Bar.formFactor = "Symmetric" | |
| 785 | Bar.Size = Vector3.new(1, 1, 1) | |
| 786 | Bar.Transparency = 1 | |
| 787 | Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0) | |
| 788 | Bar.Parent = playa | |
| 789 | local Weld = Instance.new("Weld")
| |
| 790 | Weld.Part0 = Torso | |
| 791 | Weld.Part1 = Bar | |
| 792 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
| 793 | Weld.Parent = Torso | |
| 794 | --]] | |
| 795 | playa.Parent = Gibs | |
| 796 | if kneef and explode == nil then | |
| 797 | local coru = coroutine.wrap(function() | |
| 798 | if playa:FindFirstChild(hitz) then | |
| 799 | local uno = Instance.new('Part',workspace)
| |
| 800 | local dos = Instance.new('Part',workspace)
| |
| 801 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 802 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 803 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 804 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 805 | weld.Part1 = kneef["big ass knife"] | |
| 806 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 807 | uno:Destroy() | |
| 808 | dos:Destroy() | |
| 809 | playa:FindFirstChild(hitz).Anchored = false | |
| 810 | for i, v in pairs(kneef:GetChildren()) do | |
| 811 | if v:IsA('BasePart') then
| |
| 812 | v.Anchored = false | |
| 813 | end | |
| 814 | end | |
| 815 | if explode == nil or explode == false then | |
| 816 | local bleedpart = Instance.new("Part", kneef)
| |
| 817 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 818 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 819 | bleedpart.CanCollide = false | |
| 820 | bleedpart.Position = Head.Position + Vector3.new(0, 1, 0) | |
| 821 | bleedpart.Transparency = 1 | |
| 822 | ||
| 823 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 824 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 825 | bleedpartweld.Part1 = bleedpart | |
| 826 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 827 | local coru = coroutine.wrap(function() | |
| 828 | bleed(bleedpart) | |
| 829 | end) | |
| 830 | coru() | |
| 831 | end | |
| 832 | end | |
| 833 | if zombiemode == false or override then | |
| 834 | wait() | |
| 835 | end | |
| 836 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 837 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 838 | end | |
| 839 | end) | |
| 840 | coru() | |
| 841 | end | |
| 842 | if explode then | |
| 843 | local movevector = CFrame.new(explode.Position,Torso.Position).lookVector | |
| 844 | local repulse = Instance.new('BodyForce',Torso)
| |
| 845 | repulse.Force = movevector*10000 + Vector3.new(0,5000,0) | |
| 846 | game.Debris:AddItem(repulse,0.05) | |
| 847 | end | |
| 848 | if charred and zombiemode == false then | |
| 849 | for i,v in pairs(playa:GetChildren()) do | |
| 850 | if v:IsA('BasePart') then
| |
| 851 | v.BrickColor = BrickColor.Black() | |
| 852 | local fire = Instance.new('Fire',v)
| |
| 853 | fire.Size = 5 | |
| 854 | fire.Heat = 5 | |
| 855 | elseif v:IsA('Accessory') then
| |
| 856 | for a,c in pairs(v:GetChildren()) do | |
| 857 | if c:IsA('BasePart') then
| |
| 858 | c.BrickColor = BrickColor.Black() | |
| 859 | local fire = Instance.new('Fire',v)
| |
| 860 | fire.Size = 5 | |
| 861 | fire.Heat = 5 | |
| 862 | for o,p in pairs(c:GetChildren()) do | |
| 863 | if p:IsA("SpecialMesh") then
| |
| 864 | p.TextureId = "" | |
| 865 | end | |
| 866 | end | |
| 867 | end | |
| 868 | end | |
| 869 | end | |
| 870 | end | |
| 871 | end | |
| 872 | if soundy then | |
| 873 | local sound = Instance.new('Sound',Head)
| |
| 874 | sound.SoundId = 'rbxassetid://903640857' | |
| 875 | sound.Volume = 1 | |
| 876 | sound:Play() | |
| 877 | sound.Ended:connect(function() | |
| 878 | sound:Destroy() | |
| 879 | local ambient = Instance.new('Sound',Head)
| |
| 880 | ambient.Volume = 0.25 | |
| 881 | ambient.Looped = true | |
| 882 | ambient.SoundId = 'rbxassetid://903641031' | |
| 883 | ambient:Play() | |
| 884 | end) | |
| 885 | end | |
| 886 | if override then | |
| 887 | if (string.len(hum2.Parent.Name) < 9 or string.sub(hum2.Parent.Name,string.len(hum2.Parent.Name)-8,string.len(hum2.Parent.Name)) ~= "'s Zombie") and zombiemode == true and #zombies < 10 then | |
| 888 | local coru = coroutine.wrap(function() | |
| 889 | wait(4.5) | |
| 890 | hum2.Parent.Name = hum2.Parent.Name.."'s Zombie" | |
| 891 | hum2.HipHeight = 0.2 | |
| 892 | wait(0.5) | |
| 893 | killz(hum2.Parent,"Head",nil,nil,false,false,false,false) | |
| 894 | end) | |
| 895 | coru() | |
| 896 | else | |
| 897 | game:GetService('Debris'):AddItem(playa, 12)
| |
| 898 | end | |
| 899 | else | |
| 900 | hum2.Health = 0 | |
| 901 | table.insert(zombies,playa) | |
| 902 | local attack = Instance.new('Sound',Head)
| |
| 903 | attack.SoundId = 'rbxassetid://903641424' | |
| 904 | attack.Volume = 2 | |
| 905 | for i,v in pairs(playa:GetChildren()) do | |
| 906 | if v:IsA('BasePart') and v:FindFirstChildOfClass('TouchTransmitter') == nil then
| |
| 907 | v.Touched:connect(function(hit) | |
| 908 | if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') then
| |
| 909 | local found = false | |
| 910 | if hit.Parent == player.Character then | |
| 911 | found = true | |
| 912 | end | |
| 913 | for a,c in pairs(zombies) do | |
| 914 | if c == hit.Parent then | |
| 915 | found = true | |
| 916 | end | |
| 917 | end | |
| 918 | if found == false and hit.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 919 | attack:Play() | |
| 920 | if hit.Parent:FindFirstChildOfClass('Humanoid').Health - 2 <= 0 then
| |
| 921 | hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 922 | wait() | |
| 923 | killz(hit.Parent,"Head") | |
| 924 | else | |
| 925 | hit.Parent:FindFirstChildOfClass('Humanoid'):TakeDamage(2)
| |
| 926 | end | |
| 927 | end | |
| 928 | end | |
| 929 | end) | |
| 930 | end | |
| 931 | end | |
| 932 | local coru = coroutine.wrap(function() | |
| 933 | wait(2) | |
| 934 | for i,v in pairs(playa:GetChildren()) do | |
| 935 | if v:IsA('BasePart') then
| |
| 936 | for a,c in pairs(v:GetChildren()) do | |
| 937 | if c:IsA('Fire') or c:IsA('ParticleEmitter') then
| |
| 938 | c:Destroy() | |
| 939 | end | |
| 940 | end | |
| 941 | elseif v:IsA('Accessory') then
| |
| 942 | for a,c in pairs(v:GetChildren()) do | |
| 943 | if c:IsA('BasePart') then
| |
| 944 | for b,d in pairs(c:GetChildren()) do | |
| 945 | if d:IsA('Fire') or d:IsA('ParticleEmitter') then
| |
| 946 | d:Destroy() | |
| 947 | end | |
| 948 | end | |
| 949 | end | |
| 950 | end | |
| 951 | end | |
| 952 | end | |
| 953 | end) | |
| 954 | coru() | |
| 955 | end | |
| 956 | end | |
| 957 | end | |
| 958 | ||
| 959 | mouse.KeyDown:connect(function(key) | |
| 960 | if key == "t" and mouse.Target then | |
| 961 | local hum = mouse.Target.Parent:FindFirstChildOfClass('Humanoid')
| |
| 962 | if hum == nil then hum = mouse.Target.Parent.Parent:FindFirstChildOfClass('Humanoid') end
| |
| 963 | if curpoint == nil then | |
| 964 | if hum and hum.Parent:FindFirstChild('Head') then
| |
| 965 | curpart = hum.Parent.Head | |
| 966 | else | |
| 967 | curpart = nil | |
| 968 | curpoint = mouse.Hit.p | |
| 969 | end | |
| 970 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end
| |
| 971 | notify("ZOMBIE TARGET SET",false)
| |
| 972 | else | |
| 973 | curpart = nil | |
| 974 | curpoint = nil | |
| 975 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end
| |
| 976 | notify("ZOMBIE TARGET REMOVED",false)
| |
| 977 | end | |
| 978 | elseif key == "y" then | |
| 979 | for o,p in pairs(zombies) do | |
| 980 | local coru = coroutine.wrap(function() | |
| 981 | if p:FindFirstChild('Torso') then
| |
| 982 | killz(p,"Head",nil,nil,false,false,false,true) | |
| 983 | else | |
| 984 | table.remove(zombies,o) | |
| 985 | end | |
| 986 | end) | |
| 987 | coru() | |
| 988 | wait() | |
| 989 | end | |
| 990 | for i,v in pairs(zombies) do | |
| 991 | table.remove(zombies,i) | |
| 992 | end | |
| 993 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end
| |
| 994 | notify("ZOMBIES TERMINATED",false)
| |
| 995 | end | |
| 996 | end) | |
| 997 | ||
| 998 | function nub() | |
| 999 | repeat wait() until player.Character and player.Character:FindFirstChild('Torso')
| |
| 1000 | local me = player.Character | |
| 1001 | local point = me.HumanoidRootPart | |
| 1002 | local playergui = player.PlayerGui | |
| 1003 | local rightshoulderz = me.Torso["Right Shoulder"]:Clone() | |
| 1004 | local leftshoulderz = me.Torso["Left Shoulder"]:Clone() | |
| 1005 | local torsojoint = me.HumanoidRootPart["RootJoint"]:Clone() | |
| 1006 | local lefthipz = me.Torso["Left Hip"]:Clone() | |
| 1007 | local righthipz = me.Torso["Right Hip"]:Clone() | |
| 1008 | local mode = "kill" | |
| 1009 | local lerpz = false | |
| 1010 | local active = false | |
| 1011 | local acting = false | |
| 1012 | local hit = false | |
| 1013 | local canClick = true | |
| 1014 | local stabbing = false | |
| 1015 | local grabbing = false | |
| 1016 | local finishing = false | |
| 1017 | local kyssing = false | |
| 1018 | local canbackgroundmusic = true | |
| 1019 | local cancolorfilter = true | |
| 1020 | local spinboolean = false | |
| 1021 | local grabbed = nil | |
| 1022 | local doing = false | |
| 1023 | local rightshoulder = nil | |
| 1024 | local leftshoulder = nil | |
| 1025 | local headweld = nil | |
| 1026 | local knifeparts = {}
| |
| 1027 | local usable = true | |
| 1028 | finishnum = 1 | |
| 1029 | ||
| 1030 | function notify(msg,forever) | |
| 1031 | local doit = coroutine.wrap(function() | |
| 1032 | local gui = Instance.new('ScreenGui',playergui)
| |
| 1033 | gui.Name = "Notification" | |
| 1034 | local frame = Instance.new('Frame',gui)
| |
| 1035 | frame.Position = UDim2.new(0,0,0,0) | |
| 1036 | frame.Size = UDim2.new(1,0,0.2,0) | |
| 1037 | frame.BackgroundTransparency = 1 | |
| 1038 | local txt = Instance.new('TextLabel',frame)
| |
| 1039 | txt.TextColor3 = Color3.new(255,255,255) | |
| 1040 | txt.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 1041 | txt.TextStrokeTransparency = 0 | |
| 1042 | txt.BackgroundTransparency = 1 | |
| 1043 | txt.Text = "" | |
| 1044 | txt.Size = UDim2.new(1,0,0.3,0) | |
| 1045 | txt.Position = UDim2.new(0,0,0.4,0) | |
| 1046 | txt.TextScaled = true | |
| 1047 | txt.Font = "Code" | |
| 1048 | txt.TextXAlignment = "Center" | |
| 1049 | local tap = Instance.new("Sound")
| |
| 1050 | tap.Parent = gui | |
| 1051 | tap.SoundId = "rbxassetid://147982968" | |
| 1052 | tap.TimePosition = 0.1 | |
| 1053 | local str = msg | |
| 1054 | local len = string.len(str) | |
| 1055 | for i=1,len do | |
| 1056 | txt.Text = string.sub(str,1,i) | |
| 1057 | pitche = math.random(20, 40)/10 | |
| 1058 | tap.PlaybackSpeed = pitche | |
| 1059 | tap:Play() | |
| 1060 | wait(0.01) | |
| 1061 | end | |
| 1062 | if forever == false then | |
| 1063 | wait(1) | |
| 1064 | while txt.TextTransparency < 1 do | |
| 1065 | txt.TextTransparency = txt.TextTransparency + 0.1 | |
| 1066 | txt.TextStrokeTransparency = txt.TextStrokeTransparency + 0.1 | |
| 1067 | wait(0.001) | |
| 1068 | end | |
| 1069 | gui:Destroy() | |
| 1070 | end | |
| 1071 | end) | |
| 1072 | doit() | |
| 1073 | end | |
| 1074 | ||
| 1075 | wait(0.5) | |
| 1076 | notify("PRESS [Z] TO EQUIP KNIFE || Created by mustardfoot and Tollonis",true)
| |
| 1077 | local laugh = Instance.new('Sound',me.Head)
| |
| 1078 | laugh.SoundId = 'rbxassetid://378827985' | |
| 1079 | laugh.Name = "Psycho" | |
| 1080 | laugh.Volume = 5 | |
| 1081 | -- 1 - bitch ass knife | |
| 1082 | local obj1 = Instance.new("Model")
| |
| 1083 | obj1.Name = "bitch ass knife" | |
| 1084 | obj1.Parent = game.Workspace | |
| 1085 | ||
| 1086 | -- 2 - Grab | |
| 1087 | local obj2 = Instance.new("Part")
| |
| 1088 | obj2.CFrame = CFrame.new(Vector3.new(20.4525032, 6.14501333, -134.399979)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
| 1089 | obj2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1090 | obj2.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1091 | obj2.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1092 | obj2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1093 | obj2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1094 | obj2.Material = Enum.Material.Concrete | |
| 1095 | obj2.Size = Vector3.new(1, 0.25, 0.25) | |
| 1096 | obj2.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1097 | obj2.Anchored = true | |
| 1098 | obj2.BrickColor = BrickColor.new("Black")
| |
| 1099 | obj2.Friction = 0.30000001192093 | |
| 1100 | obj2.Shape = Enum.PartType.Cylinder | |
| 1101 | obj2.Name = "Grab" | |
| 1102 | obj2.Parent = obj1 | |
| 1103 | ||
| 1104 | -- 3 - handletopcap | |
| 1105 | local obj3 = Instance.new("Part")
| |
| 1106 | obj3.CFrame = CFrame.new(Vector3.new(19.9725456, 6.14502859, -134.399933)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1107 | obj3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1108 | obj3.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1109 | obj3.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1110 | obj3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1111 | obj3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1112 | obj3.Material = Enum.Material.Concrete | |
| 1113 | obj3.Size = Vector3.new(0.349999994, 0.349999994, 0.349999994) | |
| 1114 | obj3.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1115 | obj3.Anchored = true | |
| 1116 | obj3.BrickColor = BrickColor.new("Black")
| |
| 1117 | obj3.Friction = 0.30000001192093 | |
| 1118 | obj3.Shape = Enum.PartType.Ball | |
| 1119 | obj3.Name = "handletopcap" | |
| 1120 | obj3.Parent = obj1 | |
| 1121 | ||
| 1122 | -- 4 - handlebottomcap | |
| 1123 | local obj4 = Instance.new("Part")
| |
| 1124 | obj4.CFrame = CFrame.new(Vector3.new(20.9725285, 6.14502859, -134.399918)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1125 | obj4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1126 | obj4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1127 | obj4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1128 | obj4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1129 | obj4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1130 | obj4.Material = Enum.Material.Concrete | |
| 1131 | obj4.Size = Vector3.new(0.25, 0.25, 0.25) | |
| 1132 | obj4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1133 | obj4.Anchored = true | |
| 1134 | obj4.BrickColor = BrickColor.new("Black")
| |
| 1135 | obj4.Friction = 0.30000001192093 | |
| 1136 | obj4.Shape = Enum.PartType.Ball | |
| 1137 | obj4.Name = "handlebottomcap" | |
| 1138 | obj4.Parent = obj1 | |
| 1139 | ||
| 1140 | -- 5 - handleguardmid | |
| 1141 | local obj5 = Instance.new("Part")
| |
| 1142 | obj5.CFrame = CFrame.new(Vector3.new(19.9474983, 6.14502859, -134.399918)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1143 | obj5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1144 | obj5.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1145 | obj5.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1146 | obj5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1147 | obj5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1148 | obj5.Material = Enum.Material.Concrete | |
| 1149 | obj5.Size = Vector3.new(0.349999994, 0.349999994, 0.100000001) | |
| 1150 | obj5.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1151 | obj5.Anchored = true | |
| 1152 | obj5.BrickColor = BrickColor.new("Black")
| |
| 1153 | obj5.Friction = 0.30000001192093 | |
| 1154 | obj5.Shape = Enum.PartType.Block | |
| 1155 | obj5.Name = "handleguardmid" | |
| 1156 | obj5.Parent = obj1 | |
| 1157 | ||
| 1158 | -- 6 - handleguardcap1 | |
| 1159 | local obj6 = Instance.new("Part")
| |
| 1160 | obj6.CFrame = CFrame.new(Vector3.new(19.9474983, 6.32502794, -134.399918)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
| 1161 | obj6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1162 | obj6.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1163 | obj6.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1164 | obj6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1165 | obj6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1166 | obj6.Material = Enum.Material.Concrete | |
| 1167 | obj6.Size = Vector3.new(0.100000001, 0.349999994, 0.349999994) | |
| 1168 | obj6.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1169 | obj6.Anchored = true | |
| 1170 | obj6.BrickColor = BrickColor.new("Black")
| |
| 1171 | obj6.Friction = 0.30000001192093 | |
| 1172 | obj6.Shape = Enum.PartType.Cylinder | |
| 1173 | obj6.Name = "handleguardcap1" | |
| 1174 | obj6.Parent = obj1 | |
| 1175 | ||
| 1176 | -- 7 - handleguardcap2 | |
| 1177 | local obj7 = Instance.new("Part")
| |
| 1178 | obj7.CFrame = CFrame.new(Vector3.new(19.9474983, 5.97502899, -134.399918)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
| 1179 | obj7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1180 | obj7.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1181 | obj7.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1182 | obj7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1183 | obj7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1184 | obj7.Material = Enum.Material.Concrete | |
| 1185 | obj7.Size = Vector3.new(0.100000009, 0.349999994, 0.349999994) | |
| 1186 | obj7.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1187 | obj7.Anchored = true | |
| 1188 | obj7.BrickColor = BrickColor.new("Black")
| |
| 1189 | obj7.Friction = 0.30000001192093 | |
| 1190 | obj7.Shape = Enum.PartType.Cylinder | |
| 1191 | obj7.Name = "handleguardcap2" | |
| 1192 | obj7.Parent = obj1 | |
| 1193 | ||
| 1194 | -- 8 - big ass knife | |
| 1195 | local obj8 = Instance.new("Part")
| |
| 1196 | obj8.CFrame = CFrame.new(Vector3.new(18.4375095, 6.14502859, -134.401321)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1197 | obj8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1198 | obj8.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1199 | obj8.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1200 | obj8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1201 | obj8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1202 | obj8.Material = Enum.Material.Metal | |
| 1203 | obj8.Size = Vector3.new(0.0500000007, 0.280000001, 0.839999795) | |
| 1204 | obj8.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1205 | obj8.Anchored = true | |
| 1206 | obj8.BrickColor = BrickColor.new("Lily white")
| |
| 1207 | obj8.Friction = 0.30000001192093 | |
| 1208 | obj8.Shape = Enum.PartType.Block | |
| 1209 | obj8.Name = "big ass knife" | |
| 1210 | obj8.Parent = obj1 | |
| 1211 | ||
| 1212 | -- 9 - Mesh | |
| 1213 | local obj9 = Instance.new("BlockMesh")
| |
| 1214 | obj9.Scale = Vector3.new(0.5, 1, 1) | |
| 1215 | obj9.Parent = obj8 | |
| 1216 | ||
| 1217 | -- 10 - big ass knife | |
| 1218 | local obj10 = Instance.new("Part")
| |
| 1219 | obj10.CFrame = CFrame.new(Vector3.new(19.7425137, 6.14502859, -134.401321)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1220 | obj10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1221 | obj10.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1222 | obj10.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1223 | obj10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1224 | obj10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1225 | obj10.Material = Enum.Material.Metal | |
| 1226 | obj10.Size = Vector3.new(0.0500000007, 0.280000001, 0.289999962) | |
| 1227 | obj10.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1228 | obj10.Anchored = true | |
| 1229 | obj10.BrickColor = BrickColor.new("Lily white")
| |
| 1230 | obj10.Friction = 0.30000001192093 | |
| 1231 | obj10.Shape = Enum.PartType.Block | |
| 1232 | obj10.Name = "big ass knife" | |
| 1233 | obj10.Parent = obj1 | |
| 1234 | local knife = obj10 | |
| 1235 | ||
| 1236 | -- 11 - Mesh | |
| 1237 | local obj11 = Instance.new("BlockMesh")
| |
| 1238 | obj11.Scale = Vector3.new(0.5, 1, 1) | |
| 1239 | obj11.Parent = obj10 | |
| 1240 | ||
| 1241 | -- 12 - big ass knife | |
| 1242 | local obj12 = Instance.new("Part")
| |
| 1243 | obj12.CFrame = CFrame.new(Vector3.new(19.1075306, 6.08502865, -134.401321)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1244 | obj12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1245 | obj12.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1246 | obj12.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1247 | obj12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1248 | obj12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1249 | obj12.Material = Enum.Material.Metal | |
| 1250 | obj12.Size = Vector3.new(0.0500000007, 0.159999996, 0.979999959) | |
| 1251 | obj12.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1252 | obj12.Anchored = true | |
| 1253 | obj12.BrickColor = BrickColor.new("Lily white")
| |
| 1254 | obj12.Friction = 0.30000001192093 | |
| 1255 | obj12.Shape = Enum.PartType.Block | |
| 1256 | obj12.Name = "big ass knife" | |
| 1257 | obj12.Parent = obj1 | |
| 1258 | ||
| 1259 | -- 13 - Mesh | |
| 1260 | local obj13 = Instance.new("BlockMesh")
| |
| 1261 | obj13.Scale = Vector3.new(0.5, 1, 1) | |
| 1262 | obj13.Parent = obj12 | |
| 1263 | ||
| 1264 | -- 14 - serration | |
| 1265 | local obj14 = Instance.new("WedgePart")
| |
| 1266 | obj14.CFrame = CFrame.new(Vector3.new(19.4963322, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1267 | obj14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1268 | obj14.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1269 | obj14.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1270 | obj14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1271 | obj14.Material = Enum.Material.Metal | |
| 1272 | obj14.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1273 | obj14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1274 | obj14.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1275 | obj14.Anchored = true | |
| 1276 | obj14.BrickColor = BrickColor.new("Lily white")
| |
| 1277 | obj14.Friction = 0.30000001192093 | |
| 1278 | obj14.Name = "serration" | |
| 1279 | obj14.Parent = obj1 | |
| 1280 | ||
| 1281 | -- 15 - Mesh | |
| 1282 | local obj15 = Instance.new("BlockMesh")
| |
| 1283 | obj15.Scale = Vector3.new(0.5, 1, 1) | |
| 1284 | obj15.Parent = obj14 | |
| 1285 | ||
| 1286 | -- 16 - serration | |
| 1287 | local obj16 = Instance.new("WedgePart")
| |
| 1288 | obj16.CFrame = CFrame.new(Vector3.new(19.2763138, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1289 | obj16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1290 | obj16.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1291 | obj16.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1292 | obj16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1293 | obj16.Material = Enum.Material.Metal | |
| 1294 | obj16.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1295 | obj16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1296 | obj16.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1297 | obj16.Anchored = true | |
| 1298 | obj16.BrickColor = BrickColor.new("Lily white")
| |
| 1299 | obj16.Friction = 0.30000001192093 | |
| 1300 | obj16.Name = "serration" | |
| 1301 | obj16.Parent = obj1 | |
| 1302 | ||
| 1303 | -- 17 - Mesh | |
| 1304 | local obj17 = Instance.new("BlockMesh")
| |
| 1305 | obj17.Scale = Vector3.new(0.5, 1, 1) | |
| 1306 | obj17.Parent = obj16 | |
| 1307 | ||
| 1308 | -- 18 - serration | |
| 1309 | local obj18 = Instance.new("WedgePart")
| |
| 1310 | obj18.CFrame = CFrame.new(Vector3.new(19.3863068, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1311 | obj18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1312 | obj18.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1313 | obj18.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1314 | obj18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1315 | obj18.Material = Enum.Material.Metal | |
| 1316 | obj18.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1317 | obj18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1318 | obj18.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1319 | obj18.Anchored = true | |
| 1320 | obj18.BrickColor = BrickColor.new("Lily white")
| |
| 1321 | obj18.Friction = 0.30000001192093 | |
| 1322 | obj18.Name = "serration" | |
| 1323 | obj18.Parent = obj1 | |
| 1324 | ||
| 1325 | -- 19 - Mesh | |
| 1326 | local obj19 = Instance.new("BlockMesh")
| |
| 1327 | obj19.Scale = Vector3.new(0.5, 1, 1) | |
| 1328 | obj19.Parent = obj18 | |
| 1329 | ||
| 1330 | -- 20 - serration | |
| 1331 | local obj20 = Instance.new("WedgePart")
| |
| 1332 | obj20.CFrame = CFrame.new(Vector3.new(19.5963173, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1333 | obj20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1334 | obj20.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1335 | obj20.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1336 | obj20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1337 | obj20.Material = Enum.Material.Metal | |
| 1338 | obj20.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1339 | obj20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1340 | obj20.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1341 | obj20.Anchored = true | |
| 1342 | obj20.BrickColor = BrickColor.new("Lily white")
| |
| 1343 | obj20.Friction = 0.30000001192093 | |
| 1344 | obj20.Name = "serration" | |
| 1345 | obj20.Parent = obj1 | |
| 1346 | ||
| 1347 | -- 21 - Mesh | |
| 1348 | local obj21 = Instance.new("BlockMesh")
| |
| 1349 | obj21.Scale = Vector3.new(0.5, 1, 1) | |
| 1350 | obj21.Parent = obj20 | |
| 1351 | ||
| 1352 | -- 22 - serration | |
| 1353 | local obj22 = Instance.new("WedgePart")
| |
| 1354 | obj22.CFrame = CFrame.new(Vector3.new(19.1663074, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1355 | obj22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1356 | obj22.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1357 | obj22.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1358 | obj22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1359 | obj22.Material = Enum.Material.Metal | |
| 1360 | obj22.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1361 | obj22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1362 | obj22.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1363 | obj22.Anchored = true | |
| 1364 | obj22.BrickColor = BrickColor.new("Lily white")
| |
| 1365 | obj22.Friction = 0.30000001192093 | |
| 1366 | obj22.Name = "serration" | |
| 1367 | obj22.Parent = obj1 | |
| 1368 | ||
| 1369 | -- 23 - Mesh | |
| 1370 | local obj23 = Instance.new("BlockMesh")
| |
| 1371 | obj23.Scale = Vector3.new(0.5, 1, 1) | |
| 1372 | obj23.Parent = obj22 | |
| 1373 | ||
| 1374 | -- 24 - serration | |
| 1375 | local obj24 = Instance.new("WedgePart")
| |
| 1376 | obj24.CFrame = CFrame.new(Vector3.new(18.9663048, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1377 | obj24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1378 | obj24.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1379 | obj24.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1380 | obj24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1381 | obj24.Material = Enum.Material.Metal | |
| 1382 | obj24.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1383 | obj24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1384 | obj24.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1385 | obj24.Anchored = true | |
| 1386 | obj24.BrickColor = BrickColor.new("Lily white")
| |
| 1387 | obj24.Friction = 0.30000001192093 | |
| 1388 | obj24.Name = "serration" | |
| 1389 | obj24.Parent = obj1 | |
| 1390 | ||
| 1391 | -- 25 - Mesh | |
| 1392 | local obj25 = Instance.new("BlockMesh")
| |
| 1393 | obj25.Scale = Vector3.new(0.5, 1, 1) | |
| 1394 | obj25.Parent = obj24 | |
| 1395 | ||
| 1396 | -- 26 - serration | |
| 1397 | local obj26 = Instance.new("WedgePart")
| |
| 1398 | obj26.CFrame = CFrame.new(Vector3.new(18.8562984, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1399 | obj26.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1400 | obj26.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1401 | obj26.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1402 | obj26.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1403 | obj26.Material = Enum.Material.Metal | |
| 1404 | obj26.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1405 | obj26.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1406 | obj26.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1407 | obj26.Anchored = true | |
| 1408 | obj26.BrickColor = BrickColor.new("Lily white")
| |
| 1409 | obj26.Friction = 0.30000001192093 | |
| 1410 | obj26.Name = "serration" | |
| 1411 | obj26.Parent = obj1 | |
| 1412 | ||
| 1413 | -- 27 - Mesh | |
| 1414 | local obj27 = Instance.new("BlockMesh")
| |
| 1415 | obj27.Scale = Vector3.new(0.5, 1, 1) | |
| 1416 | obj27.Parent = obj26 | |
| 1417 | ||
| 1418 | -- 28 - serration | |
| 1419 | local obj28 = Instance.new("WedgePart")
| |
| 1420 | obj28.CFrame = CFrame.new(Vector3.new(19.0663071, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1421 | obj28.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1422 | obj28.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1423 | obj28.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1424 | obj28.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1425 | obj28.Material = Enum.Material.Metal | |
| 1426 | obj28.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1427 | obj28.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1428 | obj28.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1429 | obj28.Anchored = true | |
| 1430 | obj28.BrickColor = BrickColor.new("Lily white")
| |
| 1431 | obj28.Friction = 0.30000001192093 | |
| 1432 | obj28.Name = "serration" | |
| 1433 | obj28.Parent = obj1 | |
| 1434 | ||
| 1435 | -- 29 - Mesh | |
| 1436 | local obj29 = Instance.new("BlockMesh")
| |
| 1437 | obj29.Scale = Vector3.new(0.5, 1, 1) | |
| 1438 | obj29.Parent = obj28 | |
| 1439 | ||
| 1440 | -- 30 - knifetip1 | |
| 1441 | local obj30 = Instance.new("WedgePart")
| |
| 1442 | obj30.CFrame = CFrame.new(Vector3.new(18.0163059, 6.14381599, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1443 | obj30.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1444 | obj30.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1445 | obj30.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1446 | obj30.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1447 | obj30.Material = Enum.Material.Metal | |
| 1448 | obj30.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1449 | obj30.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1450 | obj30.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1451 | obj30.Anchored = true | |
| 1452 | obj30.BrickColor = BrickColor.new("Lily white")
| |
| 1453 | obj30.Friction = 0.30000001192093 | |
| 1454 | obj30.Name = "knifetip1" | |
| 1455 | obj30.Parent = obj1 | |
| 1456 | ||
| 1457 | -- 31 - Mesh | |
| 1458 | local obj31 = Instance.new("BlockMesh")
| |
| 1459 | obj31.Scale = Vector3.new(0.5, 1, 1) | |
| 1460 | obj31.Parent = obj30 | |
| 1461 | ||
| 1462 | -- 32 - redstuff | |
| 1463 | local obj32 = Instance.new("Part")
| |
| 1464 | obj32.CFrame = CFrame.new(Vector3.new(19.9470005, 5.9749999, -134.399994)) * CFrame.Angles(-0, 0, -0) | |
| 1465 | obj32.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1466 | obj32.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1467 | obj32.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1468 | obj32.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1469 | obj32.Material = Enum.Material.SmoothPlastic | |
| 1470 | obj32.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1471 | obj32.Size = Vector3.new(0.0500000007, 0.360000014, 0.360000014) | |
| 1472 | obj32.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1473 | obj32.BrickColor = BrickColor.new("Institutional white")
| |
| 1474 | obj32.Friction = 0.30000001192093 | |
| 1475 | obj32.Shape = Enum.PartType.Cylinder | |
| 1476 | obj32.Name = "redstuff" | |
| 1477 | obj32.Anchored = true | |
| 1478 | obj32.Parent = obj1 | |
| 1479 | ||
| 1480 | ||
| 1481 | -- 33 - redstuff | |
| 1482 | local obj33 = Instance.new("Part")
| |
| 1483 | obj33.CFrame = CFrame.new(Vector3.new(18.9800053, 6.1400156, -134.404984)) * CFrame.Angles(-0, 0, -0) | |
| 1484 | obj33.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1485 | obj33.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1486 | obj33.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1487 | obj33.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1488 | obj33.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1489 | obj33.Material = Enum.Material.SmoothPlastic | |
| 1490 | obj33.Size = Vector3.new(1.81999993, 0.100000001, 0.0500000007) | |
| 1491 | obj33.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1492 | obj33.BrickColor = BrickColor.new("Institutional white")
| |
| 1493 | obj33.Friction = 0.30000001192093 | |
| 1494 | obj33.Shape = Enum.PartType.Block | |
| 1495 | obj33.Name = "redstuff" | |
| 1496 | obj33.Anchored = true | |
| 1497 | obj33.Parent = obj1 | |
| 1498 | ||
| 1499 | -- 34 - redstuff | |
| 1500 | local obj34 = Instance.new("Part")
| |
| 1501 | obj34.CFrame = CFrame.new(Vector3.new(19.9470005, 6.32499981, -134.399994)) * CFrame.Angles(-0, 0, -0) | |
| 1502 | obj34.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1503 | obj34.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1504 | obj34.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1505 | obj34.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1506 | obj34.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1507 | obj34.Size = Vector3.new(0.0500000007, 0.360000014, 0.360000014) | |
| 1508 | obj34.Material = Enum.Material.SmoothPlastic | |
| 1509 | obj34.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1510 | obj34.BrickColor = BrickColor.new("Institutional white")
| |
| 1511 | obj34.Friction = 0.30000001192093 | |
| 1512 | obj34.Shape = Enum.PartType.Cylinder | |
| 1513 | obj34.Name = "redstuff" | |
| 1514 | obj34.Anchored = true | |
| 1515 | obj34.Parent = obj1 | |
| 1516 | ||
| 1517 | -- 35 - redstuff | |
| 1518 | local obj35 = Instance.new("Part")
| |
| 1519 | obj35.CFrame = CFrame.new(Vector3.new(19.8830166, 6.14501476, -134.399963)) * CFrame.Angles(-0, 0, -0) | |
| 1520 | obj35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1521 | obj35.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1522 | obj35.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1523 | obj35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1524 | obj35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1525 | obj35.Size = Vector3.new(0.0500000007, 0.319999993, 0.319999993) | |
| 1526 | obj35.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1527 | obj35.BrickColor = BrickColor.new("Institutional white")
| |
| 1528 | obj35.Friction = 0.30000001192093 | |
| 1529 | obj35.Shape = Enum.PartType.Cylinder | |
| 1530 | obj35.Material = Enum.Material.SmoothPlastic | |
| 1531 | obj35.Name = "redstuff" | |
| 1532 | obj35.Anchored = true | |
| 1533 | obj35.Parent = obj1 | |
| 1534 | ||
| 1535 | -- 36 - redstuff | |
| 1536 | local obj36 = Instance.new("Part")
| |
| 1537 | obj36.CFrame = CFrame.new(Vector3.new(20.9430103, 6.14501476, -134.399963)) * CFrame.Angles(-0, 0, -0) | |
| 1538 | obj36.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1539 | obj36.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1540 | obj36.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1541 | obj36.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1542 | obj36.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1543 | obj36.Material = Enum.Material.SmoothPlastic | |
| 1544 | obj36.Size = Vector3.new(0.0500000007, 0.25999999, 0.25999999) | |
| 1545 | obj36.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1546 | obj36.BrickColor = BrickColor.new("Institutional white")
| |
| 1547 | obj36.Friction = 0.30000001192093 | |
| 1548 | obj36.Shape = Enum.PartType.Cylinder | |
| 1549 | obj36.Name = "redstuff" | |
| 1550 | obj36.Anchored = true | |
| 1551 | obj36.Parent = obj1 | |
| 1552 | ||
| 1553 | -- 37 - redstuff | |
| 1554 | local obj37 = Instance.new("WedgePart")
| |
| 1555 | obj37.CFrame = CFrame.new(Vector3.new(18.066288, 6.14381599, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1556 | obj37.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1557 | obj37.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1558 | obj37.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1559 | obj37.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1560 | obj37.Material = Enum.Material.SmoothPlastic | |
| 1561 | obj37.Size = Vector3.new(0.0500000007, 0.0700000003, 0.0700000003) | |
| 1562 | obj37.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1563 | obj37.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1564 | obj37.Anchored = true | |
| 1565 | obj37.BrickColor = BrickColor.new("Institutional white")
| |
| 1566 | obj37.Friction = 0.30000001192093 | |
| 1567 | obj37.Name = "redstuff" | |
| 1568 | obj37.Anchored = true | |
| 1569 | obj37.Parent = obj1 | |
| 1570 | ||
| 1571 | -- 38 - redstuff | |
| 1572 | local obj38 = Instance.new("Part")
| |
| 1573 | obj38.CFrame = CFrame.new(Vector3.new(20.1230125, 6.14501476, -134.399979)) * CFrame.Angles(-0, 0, -0) | |
| 1574 | obj38.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1575 | obj38.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1576 | obj38.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1577 | obj38.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1578 | obj38.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1579 | obj38.Material = Enum.Material.SmoothPlastic | |
| 1580 | obj38.Size = Vector3.new(0.0500000007, 0.25999999, 0.25999999) | |
| 1581 | obj38.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1582 | obj38.BrickColor = BrickColor.new("Institutional white")
| |
| 1583 | obj38.Friction = 0.30000001192093 | |
| 1584 | obj38.Shape = Enum.PartType.Cylinder | |
| 1585 | obj38.Name = "redstuff" | |
| 1586 | obj38.Anchored = true | |
| 1587 | obj38.Parent = obj1 | |
| 1588 | ||
| 1589 | local function recurse(objnum) | |
| 1590 | table.insert(knifeparts,{objnum,objnum.Parent})
| |
| 1591 | for i,v in pairs(objnum:GetChildren()) do | |
| 1592 | recurse(v) | |
| 1593 | end | |
| 1594 | end | |
| 1595 | ||
| 1596 | recurse(obj1) | |
| 1597 | ||
| 1598 | local audio = Instance.new('Sound',knife)
| |
| 1599 | audio.Volume = 2 | |
| 1600 | ||
| 1601 | local audio2 = Instance.new('Sound',knife)
| |
| 1602 | audio2.Volume = 2 | |
| 1603 | ||
| 1604 | local holdpart = Instance.new("Part")
| |
| 1605 | holdpart.Parent = me | |
| 1606 | holdpart.Size = Vector3.new(0.4, 0.4, 0.2) | |
| 1607 | holdpart.Position = me.Head.Position + Vector3.new(0, 1, 0) | |
| 1608 | holdpart.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 1609 | ||
| 1610 | local previous = nil | |
| 1611 | for i,v in pairs(obj1:GetChildren()) do | |
| 1612 | if v:IsA('BasePart') then
| |
| 1613 | if previous then | |
| 1614 | local weld = Instance.new('Weld',v)
| |
| 1615 | weld.Part0 = v | |
| 1616 | weld.Part1 = previous | |
| 1617 | weld.C0 = v.CFrame:inverse() * previous.CFrame | |
| 1618 | previous.Anchored = false | |
| 1619 | previous.CanCollide = false | |
| 1620 | local vee = v | |
| 1621 | weld.AncestryChanged:connect(function(mez,par) | |
| 1622 | wait() | |
| 1623 | weld.Parent = vee | |
| 1624 | end) | |
| 1625 | end | |
| 1626 | previous = v | |
| 1627 | end | |
| 1628 | end | |
| 1629 | previous.Anchored = false | |
| 1630 | previous.CanCollide = false | |
| 1631 | ||
| 1632 | local holdpartweld = Instance.new("Weld", me.Torso)
| |
| 1633 | holdpartweld.Part0 = me.Torso | |
| 1634 | holdpartweld.Part1 = holdpart | |
| 1635 | holdpartweld.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1, -0.8, 0.15) | |
| 1636 | ||
| 1637 | holdpartweld.AncestryChanged:connect(function(mez,par) | |
| 1638 | if par ~= me.Torso then | |
| 1639 | wait() | |
| 1640 | holdpartweld.Parent = me.Torso | |
| 1641 | end | |
| 1642 | end) | |
| 1643 | ||
| 1644 | local knifeweld = Instance.new('Weld',me.Torso)
| |
| 1645 | knifeweld.Part0 = me.Torso | |
| 1646 | knifeweld.Part1 = obj2 | |
| 1647 | knifeweld.C1 = CFrame.Angles(0,math.rad(90),0) * CFrame.new(1, 0.8, 0.55) | |
| 1648 | knifeweld.AncestryChanged:connect(function(mez,par) | |
| 1649 | if par ~= me.Torso then | |
| 1650 | wait() | |
| 1651 | knifeweld.Parent = me.Torso | |
| 1652 | end | |
| 1653 | end) | |
| 1654 | local ScreenGui = Instance.new("ScreenGui")
| |
| 1655 | local CustomizeGui = Instance.new("Frame")
| |
| 1656 | local Customize = Instance.new("TextLabel")
| |
| 1657 | local ClosestColor = Instance.new("TextLabel")
| |
| 1658 | local Line = Instance.new("TextLabel")
| |
| 1659 | local Color = Instance.new("ImageLabel")
| |
| 1660 | local Close = Instance.new("TextButton")
| |
| 1661 | local RedHue = Instance.new("TextLabel")
| |
| 1662 | local GreenHue = Instance.new("TextLabel")
| |
| 1663 | local RedInput = Instance.new("TextBox")
| |
| 1664 | local BlueHue = Instance.new("TextLabel")
| |
| 1665 | local GreenInput = Instance.new("TextBox")
| |
| 1666 | local TransInput = Instance.new("TextBox")
| |
| 1667 | local BlueInput = Instance.new("TextBox")
| |
| 1668 | local Message = Instance.new("TextLabel")
| |
| 1669 | local Message2 = Instance.new("TextLabel")
| |
| 1670 | local TrailTransparency = Instance.new("TextLabel")
| |
| 1671 | local TrailInput = Instance.new("TextBox")
| |
| 1672 | local MusicOption = Instance.new("TextButton")
| |
| 1673 | local ScreenOption = Instance.new("TextButton")
| |
| 1674 | local ScreenOptionTxt = Instance.new("TextLabel")
| |
| 1675 | local MusicOptionTxt = Instance.new("TextLabel")
| |
| 1676 | ||
| 1677 | -- Properties | |
| 1678 | ||
| 1679 | ScreenGui.Parent = playergui | |
| 1680 | ||
| 1681 | CustomizeGui.Name = "CustomizeGui" | |
| 1682 | CustomizeGui.Parent = ScreenGui | |
| 1683 | CustomizeGui.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118) | |
| 1684 | CustomizeGui.BackgroundTransparency = 0.5 | |
| 1685 | CustomizeGui.BorderColor3 = Color3.new(0, 0, 0) | |
| 1686 | CustomizeGui.BorderSizePixel = 2 | |
| 1687 | CustomizeGui.Position = UDim2.new(0, 0, 0.5, 0) | |
| 1688 | CustomizeGui.Size = UDim2.new(0.449999988, 0, 0.449999988, 0) | |
| 1689 | ||
| 1690 | Customize.Name = "Customize" | |
| 1691 | Customize.Parent = CustomizeGui | |
| 1692 | Customize.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118) | |
| 1693 | Customize.BackgroundTransparency = 0.75 | |
| 1694 | Customize.BorderSizePixel = 0 | |
| 1695 | Customize.Size = UDim2.new(1, 0, 0.200000003, 0) | |
| 1696 | Customize.FontSize = Enum.FontSize.Size28 | |
| 1697 | Customize.Text = "ACCENT COLOR CUSTOMIZATION" | |
| 1698 | Customize.TextColor3 = Color3.new(1, 1, 1) | |
| 1699 | Customize.TextScaled = true | |
| 1700 | Customize.TextSize = 25 | |
| 1701 | Customize.TextStrokeTransparency = 0.5 | |
| 1702 | Customize.TextWrapped = true | |
| 1703 | ||
| 1704 | ClosestColor.Name = "ClosestColor" | |
| 1705 | ClosestColor.Parent = CustomizeGui | |
| 1706 | ClosestColor.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1707 | ClosestColor.BackgroundTransparency = 1 | |
| 1708 | ClosestColor.Position = UDim2.new(0, 0, 0.850000024, 0) | |
| 1709 | ClosestColor.Size = UDim2.new(1, 0, 0.150000006, 0) | |
| 1710 | ClosestColor.Font = Enum.Font.SourceSansLight | |
| 1711 | ClosestColor.FontSize = Enum.FontSize.Size32 | |
| 1712 | ClosestColor.Text = "Your color is closest to Institutional White" | |
| 1713 | ClosestColor.TextColor3 = Color3.new(1, 1, 1) | |
| 1714 | ClosestColor.TextSize = 30 | |
| 1715 | ClosestColor.TextStrokeTransparency = 0.5 | |
| 1716 | ||
| 1717 | Line.Name = "Line" | |
| 1718 | Line.Parent = CustomizeGui | |
| 1719 | Line.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
| 1720 | Line.BackgroundTransparency = 0.5 | |
| 1721 | Line.BorderColor3 = Color3.new(0, 0, 0) | |
| 1722 | Line.BorderSizePixel = 0 | |
| 1723 | Line.Position = UDim2.new(0, 0, 0.200000003, 0) | |
| 1724 | Line.Size = UDim2.new(1, 0, 0.0299999993, 0) | |
| 1725 | Line.Font = Enum.Font.SourceSans | |
| 1726 | Line.FontSize = Enum.FontSize.Size14 | |
| 1727 | Line.Text = " " | |
| 1728 | Line.TextSize = 14 | |
| 1729 | ||
| 1730 | Color.Name = "Color" | |
| 1731 | Color.Parent = CustomizeGui | |
| 1732 | Color.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1733 | Color.BorderSizePixel = 0 | |
| 1734 | Color.Position = UDim2.new(0.699999988, 0, 0.419999987, 0) | |
| 1735 | Color.Size = UDim2.new(0.300000012, 0, 0.300000012, 0) | |
| 1736 | Color.SizeConstraint = Enum.SizeConstraint.RelativeYY | |
| 1737 | ||
| 1738 | MusicOption.Parent = CustomizeGui | |
| 1739 | MusicOption.Name = "MusicOption" | |
| 1740 | MusicOption.BackgroundColor3 = Color3.new(0, 1, 0) | |
| 1741 | MusicOption.BorderSizePixel = 1 | |
| 1742 | MusicOption.Position = UDim2.new(0.01, 0, -0.12, 0) | |
| 1743 | MusicOption.Size = UDim2.new(0.05, 0, 0.1, 0) | |
| 1744 | MusicOption.Text = "" | |
| 1745 | MusicOption.BackgroundTransparency = 0.5 | |
| 1746 | ||
| 1747 | ScreenOption.Parent = CustomizeGui | |
| 1748 | ScreenOption.Name = "ScreenOption" | |
| 1749 | ScreenOption.BackgroundColor3 = Color3.new(0, 1, 0) | |
| 1750 | ScreenOption.BorderSizePixel = 1 | |
| 1751 | ScreenOption.Position = UDim2.new(0.01, 0, -0.23, 0) | |
| 1752 | ScreenOption.Size = UDim2.new(0.05, 0, 0.1, 0) | |
| 1753 | ScreenOption.Text = "" | |
| 1754 | ScreenOption.BackgroundTransparency = 0.5 | |
| 1755 | ||
| 1756 | ScreenOptionTxt.Name = "ScreenOptionTxt" | |
| 1757 | ScreenOptionTxt.Parent = CustomizeGui | |
| 1758 | ScreenOptionTxt.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1759 | ScreenOptionTxt.BackgroundTransparency = 1 | |
| 1760 | ScreenOptionTxt.Position = UDim2.new(0.07, 0, -0.23, 0) | |
| 1761 | ScreenOptionTxt.Size = UDim2.new(1, 0, 0.07, 0) | |
| 1762 | ScreenOptionTxt.Font = Enum.Font.SourceSans | |
| 1763 | ScreenOptionTxt.FontSize = Enum.FontSize.Size24 | |
| 1764 | ScreenOptionTxt.Text = "Psychopath Red Filter" | |
| 1765 | ScreenOptionTxt.TextColor3 = Color3.new(1, 1, 1) | |
| 1766 | ScreenOptionTxt.TextScaled = true | |
| 1767 | ScreenOptionTxt.TextSize = 20 | |
| 1768 | ScreenOptionTxt.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 1769 | ScreenOptionTxt.TextStrokeTransparency = 0.5 | |
| 1770 | ScreenOptionTxt.TextWrapped = true | |
| 1771 | ScreenOptionTxt.TextXAlignment = "Left" | |
| 1772 | ||
| 1773 | MusicOptionTxt.Name = "MusicOptionTxt" | |
| 1774 | MusicOptionTxt.Parent = CustomizeGui | |
| 1775 | MusicOptionTxt.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1776 | MusicOptionTxt.BackgroundTransparency = 1 | |
| 1777 | MusicOptionTxt.Position = UDim2.new(0.07, 0, -0.12, 0) | |
| 1778 | MusicOptionTxt.Size = UDim2.new(1, 0, 0.07, 0) | |
| 1779 | MusicOptionTxt.Font = Enum.Font.SourceSans | |
| 1780 | MusicOptionTxt.FontSize = Enum.FontSize.Size24 | |
| 1781 | MusicOptionTxt.Text = "Psychopath Background Music" | |
| 1782 | MusicOptionTxt.TextColor3 = Color3.new(1, 1, 1) | |
| 1783 | MusicOptionTxt.TextScaled = true | |
| 1784 | MusicOptionTxt.TextSize = 20 | |
| 1785 | MusicOptionTxt.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 1786 | MusicOptionTxt.TextStrokeTransparency = 0.5 | |
| 1787 | MusicOptionTxt.TextWrapped = true | |
| 1788 | MusicOptionTxt.TextXAlignment = "Left" | |
| 1789 | ||
| 1790 | Close.Name = "Close" | |
| 1791 | Close.Parent = CustomizeGui | |
| 1792 | Close.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118) | |
| 1793 | Close.BackgroundTransparency = 0.5 | |
| 1794 | Close.BorderColor3 = Color3.new(0, 0, 0) | |
| 1795 | Close.BorderSizePixel = 2 | |
| 1796 | Close.Position = UDim2.new(1.005, 0, 0, 0) | |
| 1797 | Close.Size = UDim2.new(0.100000001, 0, 0.2, 0) | |
| 1798 | Close.Font = Enum.Font.SourceSans | |
| 1799 | Close.FontSize = Enum.FontSize.Size14 | |
| 1800 | Close.Text = "X" | |
| 1801 | Close.TextColor3 = Color3.new(1, 1, 1) | |
| 1802 | Close.TextScaled = true | |
| 1803 | Close.TextSize = 14 | |
| 1804 | Close.TextStrokeTransparency = 0 | |
| 1805 | Close.TextWrapped = true | |
| 1806 | ||
| 1807 | RedHue.Name = "RedHue" | |
| 1808 | RedHue.Parent = CustomizeGui | |
| 1809 | RedHue.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1810 | RedHue.BackgroundTransparency = 1 | |
| 1811 | RedHue.Position = UDim2.new(0.100000001, 0, 0.400000006, 0) | |
| 1812 | RedHue.Size = UDim2.new(0.300000012, 0, 0.100000001, 0) | |
| 1813 | RedHue.Font = Enum.Font.SourceSans | |
| 1814 | RedHue.FontSize = Enum.FontSize.Size24 | |
| 1815 | RedHue.Text = "RED Hue Value: " | |
| 1816 | RedHue.TextColor3 = Color3.new(1, 1, 1) | |
| 1817 | RedHue.TextScaled = true | |
| 1818 | RedHue.TextSize = 20 | |
| 1819 | RedHue.TextStrokeColor3 = Color3.new(1, 0, 0) | |
| 1820 | RedHue.TextStrokeTransparency = 0.75 | |
| 1821 | RedHue.TextWrapped = true | |
| 1822 | ||
| 1823 | GreenHue.Name = "GreenHue" | |
| 1824 | GreenHue.Parent = CustomizeGui | |
| 1825 | GreenHue.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1826 | GreenHue.BackgroundTransparency = 1 | |
| 1827 | GreenHue.Position = UDim2.new(0.100000001, 0, 0.5, 0) | |
| 1828 | GreenHue.Size = UDim2.new(0.300000012, 0, 0.100000001, 0) | |
| 1829 | GreenHue.Font = Enum.Font.SourceSans | |
| 1830 | GreenHue.FontSize = Enum.FontSize.Size24 | |
| 1831 | GreenHue.Text = "GREEN Hue Value:" | |
| 1832 | GreenHue.TextColor3 = Color3.new(1, 1, 1) | |
| 1833 | GreenHue.TextScaled = true | |
| 1834 | GreenHue.TextSize = 20 | |
| 1835 | GreenHue.TextStrokeColor3 = Color3.new(0, 1, 0) | |
| 1836 | GreenHue.TextStrokeTransparency = 0.75 | |
| 1837 | GreenHue.TextWrapped = true | |
| 1838 | ||
| 1839 | RedInput.Name = "RedInput" | |
| 1840 | RedInput.Parent = CustomizeGui | |
| 1841 | RedInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
| 1842 | RedInput.BackgroundTransparency = 0.5 | |
| 1843 | RedInput.BorderSizePixel = 0 | |
| 1844 | RedInput.Position = UDim2.new(0.419999987, 0, 0.425000007, 0) | |
| 1845 | RedInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0) | |
| 1846 | RedInput.Font = Enum.Font.SourceSans | |
| 1847 | RedInput.FontSize = Enum.FontSize.Size14 | |
| 1848 | RedInput.Text = "255" | |
| 1849 | RedInput.TextColor3 = Color3.new(1, 1, 1) | |
| 1850 | RedInput.TextSize = 14 | |
| 1851 | RedInput.TextStrokeTransparency = 0 | |
| 1852 | ||
| 1853 | BlueHue.Name = "BlueHue" | |
| 1854 | BlueHue.Parent = CustomizeGui | |
| 1855 | BlueHue.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1856 | BlueHue.BackgroundTransparency = 1 | |
| 1857 | BlueHue.Position = UDim2.new(0.100000001, 0, 0.600000024, 0) | |
| 1858 | BlueHue.Size = UDim2.new(0.300000012, 0, 0.100000001, 0) | |
| 1859 | BlueHue.Font = Enum.Font.SourceSans | |
| 1860 | BlueHue.FontSize = Enum.FontSize.Size24 | |
| 1861 | BlueHue.Text = "BLUE Hue Value:" | |
| 1862 | BlueHue.TextColor3 = Color3.new(1, 1, 1) | |
| 1863 | BlueHue.TextScaled = true | |
| 1864 | BlueHue.TextSize = 20 | |
| 1865 | BlueHue.TextStrokeColor3 = Color3.new(0, 0, 1) | |
| 1866 | BlueHue.TextStrokeTransparency = 0.75 | |
| 1867 | BlueHue.TextWrapped = true | |
| 1868 | ||
| 1869 | TrailTransparency.Name = "TrailTransparency" | |
| 1870 | TrailTransparency.Parent = CustomizeGui | |
| 1871 | TrailTransparency.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1872 | TrailTransparency.BackgroundTransparency = 1 | |
| 1873 | TrailTransparency.Position = UDim2.new(0.090000001, 0, 0.700000024, 0) | |
| 1874 | TrailTransparency.Size = UDim2.new(0.310000012, 0, 0.100000001, 0) | |
| 1875 | TrailTransparency.Font = Enum.Font.SourceSans | |
| 1876 | TrailTransparency.FontSize = Enum.FontSize.Size24 | |
| 1877 | TrailTransparency.Text = "Trail Transparency:" | |
| 1878 | TrailTransparency.TextColor3 = Color3.new(1, 1, 1) | |
| 1879 | TrailTransparency.TextScaled = true | |
| 1880 | TrailTransparency.TextSize = 20 | |
| 1881 | TrailTransparency.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 1882 | TrailTransparency.TextWrapped = true | |
| 1883 | ||
| 1884 | GreenInput.Name = "GreenInput" | |
| 1885 | GreenInput.Parent = CustomizeGui | |
| 1886 | GreenInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
| 1887 | GreenInput.BackgroundTransparency = 0.5 | |
| 1888 | GreenInput.BorderSizePixel = 0 | |
| 1889 | GreenInput.Position = UDim2.new(0.419999987, 0, 0.524999976, 0) | |
| 1890 | GreenInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0) | |
| 1891 | GreenInput.Font = Enum.Font.SourceSans | |
| 1892 | GreenInput.FontSize = Enum.FontSize.Size14 | |
| 1893 | GreenInput.Text = "255" | |
| 1894 | GreenInput.TextColor3 = Color3.new(1, 1, 1) | |
| 1895 | GreenInput.TextSize = 14 | |
| 1896 | GreenInput.TextStrokeTransparency = 0 | |
| 1897 | ||
| 1898 | TransInput.Name = "TransInput" | |
| 1899 | TransInput.Parent = CustomizeGui | |
| 1900 | TransInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
| 1901 | TransInput.BackgroundTransparency = 0.5 | |
| 1902 | TransInput.BorderSizePixel = 0 | |
| 1903 | TransInput.Position = UDim2.new(0.419999987, 0, 0.725000024, 0) | |
| 1904 | TransInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0) | |
| 1905 | TransInput.Font = Enum.Font.SourceSans | |
| 1906 | TransInput.FontSize = Enum.FontSize.Size14 | |
| 1907 | TransInput.Text = "50" | |
| 1908 | TransInput.TextColor3 = Color3.new(1, 1, 1) | |
| 1909 | TransInput.TextSize = 14 | |
| 1910 | TransInput.TextStrokeTransparency = 0 | |
| 1911 | ||
| 1912 | BlueInput.Name = "BlueInput" | |
| 1913 | BlueInput.Parent = CustomizeGui | |
| 1914 | BlueInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
| 1915 | BlueInput.BackgroundTransparency = 0.5 | |
| 1916 | BlueInput.BorderSizePixel = 0 | |
| 1917 | BlueInput.Position = UDim2.new(0.419999987, 0, 0.625, 0) | |
| 1918 | BlueInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0) | |
| 1919 | BlueInput.Font = Enum.Font.SourceSans | |
| 1920 | BlueInput.FontSize = Enum.FontSize.Size14 | |
| 1921 | BlueInput.Text = "255" | |
| 1922 | BlueInput.TextColor3 = Color3.new(1, 1, 1) | |
| 1923 | BlueInput.TextSize = 14 | |
| 1924 | BlueInput.TextStrokeTransparency = 0 | |
| 1925 | ||
| 1926 | Message.Name = "Message" | |
| 1927 | Message.Parent = CustomizeGui | |
| 1928 | Message.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1929 | Message.BackgroundTransparency = 1 | |
| 1930 | Message.Position = UDim2.new(0, 0, 0.2500004, 0) | |
| 1931 | Message.Size = UDim2.new(1, 0, 0.100000006, 0) | |
| 1932 | Message.Font = Enum.Font.SourceSans | |
| 1933 | Message.FontSize = Enum.FontSize.Size18 | |
| 1934 | Message.Text = "|| Inputs must be values ||" | |
| 1935 | Message.TextColor3 = Color3.new(1, 1, 1) | |
| 1936 | Message.TextScaled = true | |
| 1937 | Message.TextSize = 15 | |
| 1938 | Message.TextStrokeTransparency = 0.75 | |
| 1939 | Message.TextWrapped = true | |
| 1940 | ||
| 1941 | local attun = Instance.new("Attachment", knife)
| |
| 1942 | attun.Position = Vector3.new(0, 0.1, -1.75) | |
| 1943 | local atdos = Instance.new("Attachment", knife)
| |
| 1944 | atdos.Position = Vector3.new(0, -0.1, 0.5) | |
| 1945 | local trail = Instance.new("Trail", knife)
| |
| 1946 | trail.LightEmission = 0.5 | |
| 1947 | trail.Attachment0 = attun | |
| 1948 | trail.Attachment1 = atdos | |
| 1949 | trail.Lifetime = 0.175 | |
| 1950 | trail.MinLength = 0 | |
| 1951 | trail.Enabled = false | |
| 1952 | ||
| 1953 | function updatez() | |
| 1954 | local rc = tonumber(RedInput.Text) | |
| 1955 | local gc = tonumber(GreenInput.Text) | |
| 1956 | local bc = tonumber(BlueInput.Text) | |
| 1957 | local tcupd = tonumber(TransInput.Text) | |
| 1958 | if rc == nil then | |
| 1959 | rc = 0 | |
| 1960 | end | |
| 1961 | if gc == nil then | |
| 1962 | gc = 0 | |
| 1963 | end | |
| 1964 | if bc == nil then | |
| 1965 | bc = 0 | |
| 1966 | end | |
| 1967 | if tcupd == nil then | |
| 1968 | tcupd = 0 | |
| 1969 | end | |
| 1970 | local tc = tcupd/100 | |
| 1971 | Color.BackgroundColor3 = Color3.fromRGB(rc,gc,bc) | |
| 1972 | ClosestColor.Text = "Your color is closest to "..tostring(BrickColor.new(Color3.fromRGB(rc,gc,bc))) | |
| 1973 | obj32.Color = Color3.fromRGB(rc,gc,bc) | |
| 1974 | obj33.Color = Color3.fromRGB(rc,gc,bc) | |
| 1975 | obj34.Color = Color3.fromRGB(rc,gc,bc) | |
| 1976 | obj35.Color = Color3.fromRGB(rc,gc,bc) | |
| 1977 | obj36.Color = Color3.fromRGB(rc,gc,bc) | |
| 1978 | obj37.Color = Color3.fromRGB(rc,gc,bc) | |
| 1979 | obj38.Color = Color3.fromRGB(rc,gc,bc) | |
| 1980 | trail.Color = ColorSequence.new(Color3.fromRGB(rc, gc, bc)) | |
| 1981 | trail.Transparency = NumberSequence.new(tc) | |
| 1982 | TrailTransparency.TextStrokeTransparency = tc | |
| 1983 | end | |
| 1984 | ||
| 1985 | RedInput.Changed:connect(function(val) | |
| 1986 | if val == "Text" and tonumber(RedInput.Text) then | |
| 1987 | RedInput.Text = tostring(tonumber(RedInput.Text)) | |
| 1988 | if tonumber(RedInput.Text) > 255 then | |
| 1989 | RedInput.Text = '255' | |
| 1990 | end | |
| 1991 | elseif val == "Text" then | |
| 1992 | RedInput.Text = "" | |
| 1993 | end | |
| 1994 | updatez() | |
| 1995 | end) | |
| 1996 | GreenInput.Changed:connect(function(val) | |
| 1997 | if val == "Text" and tonumber(GreenInput.Text) then | |
| 1998 | GreenInput.Text = tostring(tonumber(GreenInput.Text)) | |
| 1999 | if tonumber(GreenInput.Text) > 255 then | |
| 2000 | GreenInput.Text = '255' | |
| 2001 | end | |
| 2002 | elseif val == "Text" then | |
| 2003 | GreenInput.Text = "" | |
| 2004 | end | |
| 2005 | updatez() | |
| 2006 | end) | |
| 2007 | BlueInput.Changed:connect(function(val) | |
| 2008 | if val == "Text" and tonumber(BlueInput.Text) then | |
| 2009 | BlueInput.Text = tostring(tonumber(BlueInput.Text)) | |
| 2010 | if tonumber(BlueInput.Text) > 255 then | |
| 2011 | BlueInput.Text = '255' | |
| 2012 | end | |
| 2013 | elseif val == "Text" then | |
| 2014 | BlueInput.Text = "" | |
| 2015 | end | |
| 2016 | updatez() | |
| 2017 | end) | |
| 2018 | TransInput.Changed:connect(function(val) | |
| 2019 | if val == "Text" and tonumber(TransInput.Text) then | |
| 2020 | TransInput.Text = tostring(tonumber(TransInput.Text)) | |
| 2021 | if tonumber(TransInput.Text) > 100 then | |
| 2022 | TransInput.Text = '100' | |
| 2023 | end | |
| 2024 | elseif val == "Text" then | |
| 2025 | TransInput.Text = "" | |
| 2026 | end | |
| 2027 | updatez() | |
| 2028 | end) | |
| 2029 | ||
| 2030 | Close.MouseButton1Click:connect(function() | |
| 2031 | if lerpz == false then | |
| 2032 | lerpz = true | |
| 2033 | if Close.Text ~= "+" then | |
| 2034 | CustomizeGui:TweenPosition(UDim2.new(-0.45,0,0.5,0,Enum.EasingDirection.Out,Enum.EasingStyle.Quint,2)) | |
| 2035 | for i=1,10 do | |
| 2036 | Close.TextTransparency = i/10 | |
| 2037 | Close.TextStrokeTransparency = i/10 | |
| 2038 | wait(0.01) | |
| 2039 | end | |
| 2040 | Close.Text = "+" | |
| 2041 | for i=1,10 do | |
| 2042 | Close.TextTransparency = (10-i+1)/10 | |
| 2043 | Close.TextStrokeTransparency = (10-i+1)/10 | |
| 2044 | wait(0.01) | |
| 2045 | end | |
| 2046 | lerpz = false | |
| 2047 | else | |
| 2048 | CustomizeGui:TweenPosition(UDim2.new(0,0,0.5,0,Enum.EasingDirection.Out,Enum.EasingStyle.Quint,2)) | |
| 2049 | for i=1,10 do | |
| 2050 | Close.TextTransparency = i/10 | |
| 2051 | Close.TextStrokeTransparency = i/10 | |
| 2052 | wait(0.01) | |
| 2053 | end | |
| 2054 | Close.Text = "X" | |
| 2055 | for i=1,10 do | |
| 2056 | Close.TextTransparency = (10-i+1)/10 | |
| 2057 | Close.TextStrokeTransparency = (10-i+1)/10 | |
| 2058 | wait(0.01) | |
| 2059 | end | |
| 2060 | lerpz = false | |
| 2061 | end | |
| 2062 | end | |
| 2063 | end) | |
| 2064 | ||
| 2065 | MusicOption.MouseButton1Click:connect(function() | |
| 2066 | if canbackgroundmusic == true then | |
| 2067 | canbackgroundmusic = false | |
| 2068 | MusicOption.BackgroundColor3 = Color3.new(1, 0, 0) | |
| 2069 | else | |
| 2070 | canbackgroundmusic = true | |
| 2071 | MusicOption.BackgroundColor3 = Color3.new(0, 1, 0) | |
| 2072 | end | |
| 2073 | end) | |
| 2074 | ||
| 2075 | ScreenOption.MouseButton1Click:connect(function() | |
| 2076 | if cancolorfilter == true then | |
| 2077 | cancolorfilter = false | |
| 2078 | ScreenOption.BackgroundColor3 = Color3.new(1, 0, 0) | |
| 2079 | else | |
| 2080 | cancolorfilter = true | |
| 2081 | ScreenOption.BackgroundColor3 = Color3.new(0, 1, 0) | |
| 2082 | end | |
| 2083 | end) | |
| 2084 | ||
| 2085 | function equip() | |
| 2086 | local doit = coroutine.wrap(function() | |
| 2087 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') then
| |
| 2088 | acting = true | |
| 2089 | local arm = me["Right Arm"] | |
| 2090 | local arm2 = me["Left Arm"] | |
| 2091 | local tors = me.Torso | |
| 2092 | local weld = Instance.new('Weld',arm)
| |
| 2093 | weld.Part0 = arm | |
| 2094 | weld.Part1 = tors | |
| 2095 | weld.C0 = CFrame.new(-1.5,0,0) | |
| 2096 | local weld2 = Instance.new("Weld", arm2)
| |
| 2097 | weld2.Part0 = arm2 | |
| 2098 | weld2.Part1 = tors | |
| 2099 | weld2.C0 = CFrame.new(1.5, 0, 0) | |
| 2100 | wait(0.001) | |
| 2101 | for i = 0,1,0.1 do | |
| 2102 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end
| |
| 2103 | weld.C0 = weld.C0:lerp(CFrame.new(-0.2,0.2,-0.5)*CFrame.Angles(0,-3.1,0.9),i) | |
| 2104 | weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0.6, 0) * CFrame.Angles(0,0,0.5),i) | |
| 2105 | wait(0.001) | |
| 2106 | end | |
| 2107 | wait(0.15) | |
| 2108 | trail.Enabled = true | |
| 2109 | for i = 0,1,0.1 do | |
| 2110 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end
| |
| 2111 | weld.C0 = weld.C0:lerp(CFrame.new(-0.5,2,0)*CFrame.Angles(0,0,-1.55),i) | |
| 2112 | weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0, 0), i) | |
| 2113 | wait(0.001) | |
| 2114 | end | |
| 2115 | trail.Enabled = false | |
| 2116 | wait(0.2) | |
| 2117 | for i = 0,1,0.1 do | |
| 2118 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end
| |
| 2119 | weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 2120 | wait(0.001) | |
| 2121 | end | |
| 2122 | weld:Destroy() | |
| 2123 | weld2:Remove() | |
| 2124 | if tors ~= nil then | |
| 2125 | rightshoulderz:Clone().Parent = me.Torso | |
| 2126 | leftshoulderz:Clone().Parent = me.Torso | |
| 2127 | end | |
| 2128 | end | |
| 2129 | acting = false | |
| 2130 | end) | |
| 2131 | doit() | |
| 2132 | end | |
| 2133 | ||
| 2134 | function kysnigga() | |
| 2135 | if kyssing == true then return end | |
| 2136 | kyssing = true | |
| 2137 | acting = true | |
| 2138 | decearingTHING = math.random(1, 100) | |
| 2139 | if decearingTHING == 4 then | |
| 2140 | decearingEGG = Instance.new("Sound", me.Torso)
| |
| 2141 | decearingEGG.SoundId = "rbxassetid://138084557" | |
| 2142 | decearingEGG.PlaybackSpeed = math.random(10, 12) / 10 | |
| 2143 | decearingEGG.TimePosition = 0.2 | |
| 2144 | decearingEGG:Play() | |
| 2145 | end | |
| 2146 | me.Humanoid.WalkSpeed = 0 | |
| 2147 | me.Humanoid.JumpPower = 0 | |
| 2148 | ||
| 2149 | local rightarm = Instance.new("Weld", me.Torso)
| |
| 2150 | rightarm.Part0 = me.Torso | |
| 2151 | rightarm.Part1 = me["Right Arm"] | |
| 2152 | rightarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(1.5, 0, 0) | |
| 2153 | ||
| 2154 | local leftarm = Instance.new("Weld", me.Torso)
| |
| 2155 | leftarm.Part0 = me.Torso | |
| 2156 | leftarm.Part1 = me["Left Arm"] | |
| 2157 | leftarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0) | |
| 2158 | ||
| 2159 | local tors = Instance.new("Weld", me.HumanoidRootPart)
| |
| 2160 | tors.Part0 = me.HumanoidRootPart | |
| 2161 | tors.Part1 = me.Torso | |
| 2162 | tors.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2163 | ||
| 2164 | local rightleg = Instance.new("Weld", me.Torso)
| |
| 2165 | rightleg.Part0 = me.Torso | |
| 2166 | rightleg.Part1 = me["Right Leg"] | |
| 2167 | rightleg.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0.5, -2, 0) | |
| 2168 | ||
| 2169 | local leftleg = Instance.new("Weld", me.Torso)
| |
| 2170 | leftleg.Part0 = me.Torso | |
| 2171 | leftleg.Part1 = me["Left Leg"] | |
| 2172 | leftleg.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-0.5, -2, 0) | |
| 2173 | ||
| 2174 | for i = 0, 1, 0.03 do | |
| 2175 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-10), 0, 0), i) | |
| 2176 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-80), 0, 0), i) | |
| 2177 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-80), 0, 0), i) | |
| 2178 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), i) | |
| 2179 | wait() | |
| 2180 | end | |
| 2181 | for i = 0, 1, 0.03 do | |
| 2182 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(5), 0, 0), i) | |
| 2183 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1, 0.15) * CFrame.Angles(math.rad(-95), 0, 0), i) | |
| 2184 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1, 0.15) * CFrame.Angles(math.rad(-95), 0, 0), i) | |
| 2185 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1, 0.3, -1.5) * CFrame.Angles(math.rad(90), 0, math.rad(-35)), i) | |
| 2186 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1, 0.3, -1.5) * CFrame.Angles(math.rad(90), 0, math.rad(35)), i) | |
| 2187 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.new(1.35, 0, 1) * CFrame.Angles(1.55, math.rad(-180), 1), i) | |
| 2188 | wait() | |
| 2189 | end | |
| 2190 | local bleedzer = Instance.new('Part',me.Torso)
| |
| 2191 | bleedzer.CFrame = me.Torso.CFrame | |
| 2192 | bleedzer.Size = Vector3.new(0.1,0.1,0.1) | |
| 2193 | bleedzer.Transparency = 1 | |
| 2194 | bleedzer.CanCollide = false | |
| 2195 | local weld = Instance.new('Weld',bleedzer)
| |
| 2196 | weld.Part0 = bleedzer | |
| 2197 | weld.Part1 = me.Torso | |
| 2198 | weld.C0= CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 2199 | local woodpekker = coroutine.wrap(function() | |
| 2200 | bleed(bleedzer) | |
| 2201 | end) | |
| 2202 | woodpekker() | |
| 2203 | audio.SoundId = "rbxassetid://199977936" | |
| 2204 | audio.PlaybackSpeed = 1.5 | |
| 2205 | audio:Play() | |
| 2206 | audio2.SoundId = "rbxassetid://220834019" | |
| 2207 | audio2.PlaybackSpeed = 1 | |
| 2208 | audio2.TimePosition = 0.1 | |
| 2209 | audio2:Play() | |
| 2210 | for i = 0, 1, 0.1 do | |
| 2211 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20), 0, 0), i) | |
| 2212 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1, -0.35) * CFrame.Angles(math.rad(-70), 0, 0), i) | |
| 2213 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1, -0.35) * CFrame.Angles(math.rad(-70), 0, 0), i) | |
| 2214 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1, 0, 0) * CFrame.Angles(math.rad(70), 0, math.rad(-35)), i) | |
| 2215 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1, 0, 0) * CFrame.Angles(math.rad(70), 0, math.rad(35)), i) | |
| 2216 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.new(1.35, 0, 1) * CFrame.Angles(1.55, math.rad(-180), 1), i) | |
| 2217 | wait() | |
| 2218 | end | |
| 2219 | wait(1) | |
| 2220 | audio.SoundId = "rbxassetid://210943487" | |
| 2221 | audio.TimePosition = 0.2 | |
| 2222 | audio.PlaybackSpeed = 0.75 | |
| 2223 | audio:Play() | |
| 2224 | for i = 0, 1, 0.03 do | |
| 2225 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20), 0, 0), i) | |
| 2226 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1, -0.35) * CFrame.Angles(math.rad(-70), 0, 0), i) | |
| 2227 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1, -0.35) * CFrame.Angles(math.rad(-70), 0, 0), i) | |
| 2228 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1, 0.3, -1.5) * CFrame.Angles(math.rad(70), 0, math.rad(-35)), i) | |
| 2229 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1, 0.3, -1.5) * CFrame.Angles(math.rad(70), 0, math.rad(35)), i) | |
| 2230 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.new(1.35, 0, 1) * CFrame.Angles(1.55, math.rad(-180), 1), i) | |
| 2231 | wait() | |
| 2232 | end | |
| 2233 | for i = 0, 1, 0.03 do | |
| 2234 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0, -0.4) * CFrame.Angles(math.rad(30), 0, math.rad(0)), i) | |
| 2235 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0, -0.4) * CFrame.Angles(math.rad(30), 0, math.rad(0)), i) | |
| 2236 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0), i) | |
| 2237 | wait() | |
| 2238 | end | |
| 2239 | wait(0.24) | |
| 2240 | if me:FindFirstChildOfClass('Humanoid') then
| |
| 2241 | me:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 2242 | end | |
| 2243 | wait(0.01) | |
| 2244 | killz(me,me.Torso.Name,nil,nil,true) | |
| 2245 | ||
| 2246 | tors:Remove() | |
| 2247 | rightarm:Remove() | |
| 2248 | rightleg:Remove() | |
| 2249 | leftleg:Remove() | |
| 2250 | leftarm:Remove() | |
| 2251 | rightshoulderz:Clone().Parent = me.Torso | |
| 2252 | leftshoulderz:Clone().Parent = me.Torso | |
| 2253 | torsojoint:Clone().Parent = me.HumanoidRootPart | |
| 2254 | lefthipz:Clone().Parent = me.Torso | |
| 2255 | righthipz:Clone().Parent = me.Torso | |
| 2256 | me.Humanoid.JumpPower = 50 | |
| 2257 | me.Humanoid.WalkSpeed = 16 | |
| 2258 | acting = false | |
| 2259 | canClick = true | |
| 2260 | doing = false | |
| 2261 | hit = false | |
| 2262 | kyssing = false | |
| 2263 | if decearingTHING == 4 then | |
| 2264 | decearingEGG:Remove() | |
| 2265 | end | |
| 2266 | end | |
| 2267 | ||
| 2268 | function bleedout() | |
| 2269 | local doit = coroutine.wrap(function() | |
| 2270 | local targe = grabbed | |
| 2271 | local num = 0 | |
| 2272 | while targe and targe:FindFirstChildOfClass('Humanoid') and targe:FindFirstChildOfClass('Humanoid').Health > 0 and num < 11 do
| |
| 2273 | if targe.Head:FindFirstChild('Died') then
| |
| 2274 | tone = math.random(6, 12) / 10 | |
| 2275 | targe.Head.Died.PlaybackSpeed = tone | |
| 2276 | targe.Head.Died:Play() | |
| 2277 | else | |
| 2278 | local deathsound = Instance.new('Sound',targe.Head)
| |
| 2279 | deathsound.Name = "Died" | |
| 2280 | deathsound.SoundId = 'rbxasset://sounds/uuhhh.mp3' | |
| 2281 | deathsound.Volume = 0.65 | |
| 2282 | deathsound.EmitterSize = 5 | |
| 2283 | deathsound.MaxDistance = 150 | |
| 2284 | tone = math.random(5, 15) / 10 | |
| 2285 | targe.Head.Died.PlaybackSpeed = tone | |
| 2286 | targe.Head.Died:Play() | |
| 2287 | end | |
| 2288 | targe:FindFirstChildOfClass('Humanoid').Health = targe:FindFirstChildOfClass('Humanoid').Health - 7
| |
| 2289 | num = num+1 | |
| 2290 | wait(0.325) | |
| 2291 | end | |
| 2292 | targe:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 2293 | wait() | |
| 2294 | killz(targe,'Head',nil,nil,false,true) | |
| 2295 | wait(2) | |
| 2296 | targe:Remove() | |
| 2297 | end) | |
| 2298 | doit() | |
| 2299 | end | |
| 2300 | ||
| 2301 | function liedown() | |
| 2302 | local doit = coroutine.wrap(function() | |
| 2303 | local targe = grabbed | |
| 2304 | wait(2) | |
| 2305 | if targe and targe:FindFirstChildOfClass('Humanoid') then
| |
| 2306 | targe:FindFirstChildOfClass('Humanoid').PlatformStand = false
| |
| 2307 | end | |
| 2308 | end) | |
| 2309 | doit() | |
| 2310 | end | |
| 2311 | ||
| 2312 | function grab() | |
| 2313 | local doit = coroutine.wrap(function() | |
| 2314 | acting = true | |
| 2315 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed + 3
| |
| 2316 | local arm = me["Right Arm"] | |
| 2317 | local tors = me.Torso | |
| 2318 | local arm2 = me["Left Arm"] | |
| 2319 | local humanroot = me.HumanoidRootPart | |
| 2320 | local weld2 = Instance.new('Weld',arm)
| |
| 2321 | weld2.Part0 = arm | |
| 2322 | weld2.Part1 = tors | |
| 2323 | weld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
| 2324 | local weld3 = Instance.new('Weld',arm2)
| |
| 2325 | weld3.Part0 = arm2 | |
| 2326 | weld3.Part1 = tors | |
| 2327 | weld3.C0 = CFrame.new(1.5,0,-0.3) * CFrame.Angles(0.3,0.1,0) | |
| 2328 | for i = 0,1,0.05 do | |
| 2329 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or humanroot == nil then return end
| |
| 2330 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.2,1.3,0.4)*CFrame.Angles(0.5,0,-1.2),i) | |
| 2331 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.2,1.3,0)*CFrame.Angles(0,0,1.2),i) | |
| 2332 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), -1.55) * CFrame.new(0, 0.95, 0) | |
| 2333 | wait(0.01) | |
| 2334 | end | |
| 2335 | grabbing = true | |
| 2336 | trail.Enabled = true | |
| 2337 | for i = 0,1,0.10 do | |
| 2338 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or humanroot == nil then return end
| |
| 2339 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-1.5, 0, -1.3), i) | |
| 2340 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1, -0.5)* CFrame.Angles(-1.5, 0, 1.1), i) | |
| 2341 | wait(0.01) | |
| 2342 | end | |
| 2343 | trail.Enabled = false | |
| 2344 | wait(0.5) | |
| 2345 | grabbing = false | |
| 2346 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed - 3
| |
| 2347 | if grabbed == nil then | |
| 2348 | for i = 0,1,0.1 do | |
| 2349 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil then return end
| |
| 2350 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 2351 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0),i) | |
| 2352 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0) | |
| 2353 | wait(0.001) | |
| 2354 | end | |
| 2355 | weld2:Destroy() | |
| 2356 | weld3:Destroy() | |
| 2357 | rightshoulderz:Clone().Parent = me.Torso | |
| 2358 | leftshoulderz:Clone().Parent = me.Torso | |
| 2359 | acting = false | |
| 2360 | canClick = true | |
| 2361 | end | |
| 2362 | end) | |
| 2363 | doit() | |
| 2364 | end | |
| 2365 | ||
| 2366 | function kill() | |
| 2367 | paralyzed = false | |
| 2368 | if grabbed.Torso:FindFirstChild("TargetWeld") == nil or grabbed:FindFirstChildOfClass('Humanoid').Health <= 0 then hardrelease() return end
| |
| 2369 | targetweld = grabbed.Torso.TargetWeld | |
| 2370 | targetweld2 = nil | |
| 2371 | local reee = grabbed:FindFirstChild("Left Arm")
| |
| 2372 | if reee and reee:FindFirstChild("Weld") then
| |
| 2373 | targetweld2 = reee.Weld | |
| 2374 | end | |
| 2375 | for i, v in pairs(grabbed:GetChildren()) do | |
| 2376 | if v.Name == "Part" then | |
| 2377 | v.CanCollide = true | |
| 2378 | end | |
| 2379 | end | |
| 2380 | targetweld3pt = grabbed:FindFirstChild("Right Arm")
| |
| 2381 | local targetrightshoulder = rightshoulder | |
| 2382 | local targetleftshoulder = leftshoulder | |
| 2383 | local targetweld3 = Instance.new("Weld", targetweld3pt)
| |
| 2384 | targetweld3.Part0 = grabbed.Torso | |
| 2385 | targetweld3.Part1 = targetweld3pt | |
| 2386 | targetweld3.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(1.5, 0, 0) | |
| 2387 | ||
| 2388 | local doit = coroutine.wrap(function() | |
| 2389 | local arm = me["Right Arm"] | |
| 2390 | local tors = grabbed.Torso | |
| 2391 | local arm2 = me["Left Arm"] | |
| 2392 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end
| |
| 2393 | doing = true | |
| 2394 | local weld2 = arm:FindFirstChildOfClass('Weld')
| |
| 2395 | local weld3 = arm2:FindFirstChildOfClass('Weld')
| |
| 2396 | local humanroot = me.HumanoidRootPart | |
| 2397 | ||
| 2398 | for i = 0,1,0.1 do | |
| 2399 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 2400 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-1.9, 0, -1.4), i) | |
| 2401 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 0.5, -0.5)* CFrame.Angles(-1.5, 0.4, 1.1), i) | |
| 2402 | wait(0.01) | |
| 2403 | end | |
| 2404 | ||
| 2405 | audio:Stop() | |
| 2406 | audio.SoundId = "rbxassetid://517040733" | |
| 2407 | tone = math.random(1, 3) | |
| 2408 | if tone == 1 then audio.PlaybackSpeed = 0.8 audio.TimePosition = 0.3 end | |
| 2409 | if tone == 2 then audio.PlaybackSpeed = 1 audio.TimePosition = 0.1 end | |
| 2410 | if tone == 3 then audio.PlaybackSpeed = 1.2 audio.TimePosition = 0.2 end | |
| 2411 | audio:Play() | |
| 2412 | ||
| 2413 | local bleedpart = Instance.new("Part", grabbed)
| |
| 2414 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 2415 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 2416 | bleedpart.CanCollide = false | |
| 2417 | bleedpart.Position = grabbed.Head.Position + Vector3.new(0, 1, 0) | |
| 2418 | bleedpart.Transparency = 1 | |
| 2419 | ||
| 2420 | local bleedpartweld = Instance.new("Weld", grabbed.Torso)
| |
| 2421 | bleedpartweld.Part0 = grabbed.Torso | |
| 2422 | bleedpartweld.Part1 = bleedpart | |
| 2423 | bleedpartweld.C0 = CFrame.Angles(-1, 0, -0.35) * CFrame.new(0, 1, 0.8) | |
| 2424 | local coru=coroutine.wrap(function() | |
| 2425 | bleed(bleedpart) | |
| 2426 | end) | |
| 2427 | coru() | |
| 2428 | ||
| 2429 | local slightthrow = Instance.new("BodyThrust", grabbed.Torso)
| |
| 2430 | slightthrow.Force = Vector3.new(0, 0, -2500) | |
| 2431 | ||
| 2432 | local slightthrow2 = Instance.new("BodyAngularVelocity", grabbed.Torso)
| |
| 2433 | slightthrow2.AngularVelocity = Vector3.new(0, -1000, 0) | |
| 2434 | slightthrow2.MaxTorque = Vector3.new(1000, 1000, 1000) | |
| 2435 | ||
| 2436 | if grabbed:FindFirstChildOfClass('Humanoid') then
| |
| 2437 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = true
| |
| 2438 | end | |
| 2439 | ||
| 2440 | killz(grabbed,'Left Leg') | |
| 2441 | killz(grabbed,'Left Arm') | |
| 2442 | killz(grabbed,'Right Leg') | |
| 2443 | killz(grabbed,'Right Arm') | |
| 2444 | ||
| 2445 | trail.Enabled = true | |
| 2446 | ||
| 2447 | for i = 0,1,0.2 do | |
| 2448 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 2449 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 1.7, -0.5)* CFrame.Angles(-0.25, 0, -1.4), i) | |
| 2450 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1.6, -0.5)* CFrame.Angles(-1.5, -1, 1.1), i) | |
| 2451 | wait(0.01) | |
| 2452 | end | |
| 2453 | ||
| 2454 | trail.Enabled = false | |
| 2455 | ||
| 2456 | bleedout() | |
| 2457 | ||
| 2458 | rightshoulderz:Clone().Parent = me.Torso | |
| 2459 | leftshoulderz:Clone().Parent = me.Torso | |
| 2460 | grabbed = nil | |
| 2461 | ||
| 2462 | if humanroot:FindFirstChild('Holder') then
| |
| 2463 | humanroot.Holder:Destroy() | |
| 2464 | end | |
| 2465 | ||
| 2466 | wait(0.2) | |
| 2467 | slightthrow:Remove() | |
| 2468 | slightthrow2:Remove() | |
| 2469 | for i = 0,1,0.05 do | |
| 2470 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 2471 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5, 0, 0)* CFrame.Angles(0, 0, 0), i) | |
| 2472 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5, 0, 0)* CFrame.Angles(0, 0, 0), i) | |
| 2473 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0) | |
| 2474 | wait(0.01) | |
| 2475 | end | |
| 2476 | ||
| 2477 | weld2:Destroy() | |
| 2478 | weld3:Destroy() | |
| 2479 | targetweld = nil | |
| 2480 | targetweld2 = nil | |
| 2481 | targetweld3 = nil | |
| 2482 | rightshoulderz:Clone().Parent = me.Torso | |
| 2483 | leftshoulderz:Clone().Parent = me.Torso | |
| 2484 | acting = false | |
| 2485 | canClick = true | |
| 2486 | doing = false | |
| 2487 | end) | |
| 2488 | doit() | |
| 2489 | end | |
| 2490 | ||
| 2491 | function finish() | |
| 2492 | if finishing == true then return end | |
| 2493 | finishing = true | |
| 2494 | acting = true | |
| 2495 | decearingTHING = math.random(1, 100) | |
| 2496 | if decearingTHING == 4 then | |
| 2497 | decearingEGG = Instance.new("Sound", me.Torso)
| |
| 2498 | decearingEGG.SoundId = "rbxassetid://138084557" | |
| 2499 | decearingEGG.PlaybackSpeed = math.random(10, 12) / 10 | |
| 2500 | decearingEGG.TimePosition = 0.2 | |
| 2501 | decearingEGG:Play() | |
| 2502 | end | |
| 2503 | me.Humanoid.WalkSpeed = 0 | |
| 2504 | me.Humanoid.JumpPower = 0 | |
| 2505 | ||
| 2506 | local rightarm = Instance.new("Weld", me.Torso)
| |
| 2507 | rightarm.Part0 = me.Torso | |
| 2508 | rightarm.Part1 = me["Right Arm"] | |
| 2509 | rightarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(1.5, 0, 0) | |
| 2510 | ||
| 2511 | local tors = Instance.new("Weld", me.HumanoidRootPart)
| |
| 2512 | tors.Part0 = me.HumanoidRootPart | |
| 2513 | tors.Part1 = me.Torso | |
| 2514 | tors.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2515 | ||
| 2516 | local rightleg = Instance.new("Weld", me.Torso)
| |
| 2517 | rightleg.Part0 = me.Torso | |
| 2518 | rightleg.Part1 = me["Right Leg"] | |
| 2519 | rightleg.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0.5, -2, 0) | |
| 2520 | ||
| 2521 | local leftleg = Instance.new("Weld", me.Torso)
| |
| 2522 | leftleg.Part0 = me.Torso | |
| 2523 | leftleg.Part1 = me["Left Leg"] | |
| 2524 | leftleg.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-0.5, -2, 0) | |
| 2525 | ||
| 2526 | for i = 0, 1, 0.05 do | |
| 2527 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), 0, 0), i) | |
| 2528 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -2, 0.2) * CFrame.Angles(math.rad(-15), 0, 0), i) | |
| 2529 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -2, 0.2) * CFrame.Angles(math.rad(-15), 0, 0), i) | |
| 2530 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 1.9, 0) * CFrame.Angles(math.rad(179), math.rad(179), 0), i) | |
| 2531 | wait() | |
| 2532 | end | |
| 2533 | for i=1,finishnum do | |
| 2534 | local num1 = 0.5 | |
| 2535 | local num2 = 0.5 | |
| 2536 | local num3 = 0.25 | |
| 2537 | if finishnum ~= 1 then | |
| 2538 | num3 = 0 | |
| 2539 | end | |
| 2540 | trail.Enabled = true | |
| 2541 | for i = 0, 1, num1 do | |
| 2542 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-60), 0, 0), i) | |
| 2543 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.5, 0) * CFrame.Angles(math.rad(0), 0, 0), i) | |
| 2544 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.7, -1) * CFrame.Angles(math.rad(10), 0, 0), i) | |
| 2545 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 1.9, -1) * CFrame.Angles(math.rad(160), math.rad(150), 0), i) | |
| 2546 | wait() | |
| 2547 | end | |
| 2548 | wait() | |
| 2549 | for i = 0, 1, num2 do | |
| 2550 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-20), 0, 0), i) | |
| 2551 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.5, 0) * CFrame.Angles(math.rad(-30), 0, 0), i) | |
| 2552 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.7, -1) * CFrame.Angles(math.rad(-20), 0, 0), i) | |
| 2553 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 1.9, 0.2) * CFrame.Angles(math.rad(250), math.rad(180), 0), i) | |
| 2554 | wait() | |
| 2555 | end | |
| 2556 | trail.Enabled = false | |
| 2557 | wait(num3) | |
| 2558 | end | |
| 2559 | wait() | |
| 2560 | for i = 0, 1, 0.05 do | |
| 2561 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
| 2562 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -2, 0) * CFrame.Angles(0, 0, 0), i) | |
| 2563 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -2, 0) * CFrame.Angles(0, 0, 0), i) | |
| 2564 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
| 2565 | wait() | |
| 2566 | end | |
| 2567 | tors:Remove() | |
| 2568 | rightarm:Remove() | |
| 2569 | rightleg:Remove() | |
| 2570 | leftleg:Remove() | |
| 2571 | rightshoulderz:Clone().Parent = me.Torso | |
| 2572 | leftshoulderz:Clone().Parent = me.Torso | |
| 2573 | torsojoint:Clone().Parent = me.HumanoidRootPart | |
| 2574 | lefthipz:Clone().Parent = me.Torso | |
| 2575 | righthipz:Clone().Parent = me.Torso | |
| 2576 | me.Humanoid.JumpPower = 50 | |
| 2577 | me.Humanoid.WalkSpeed = 16 | |
| 2578 | acting = false | |
| 2579 | canClick = true | |
| 2580 | doing = false | |
| 2581 | hit = false | |
| 2582 | finishing = false | |
| 2583 | if decearingTHING == 4 then | |
| 2584 | decearingEGG:Remove() | |
| 2585 | end | |
| 2586 | end | |
| 2587 | ||
| 2588 | function throw() | |
| 2589 | if grabbed.Torso:FindFirstChild("TargetWeld") == nil or grabbed:FindFirstChildOfClass('Humanoid').Health <= 0 then return end
| |
| 2590 | paralyzed = false | |
| 2591 | targetweld = grabbed.Torso.TargetWeld | |
| 2592 | local ree = grabbed:FindFirstChild("Left Arm")
| |
| 2593 | targetweld2 =nil | |
| 2594 | if ree and ree:FindFirstChild("Weld") then
| |
| 2595 | targetweld2 = ree.Weld | |
| 2596 | end | |
| 2597 | ||
| 2598 | for i, v in pairs(grabbed:GetChildren()) do | |
| 2599 | if v.Name == "Part" then | |
| 2600 | v.CanCollide = true | |
| 2601 | end | |
| 2602 | end | |
| 2603 | ||
| 2604 | ||
| 2605 | local doit = coroutine.wrap(function() | |
| 2606 | local arm = me["Right Arm"] | |
| 2607 | local tors = grabbed.Torso | |
| 2608 | local arm2 = me["Left Arm"] | |
| 2609 | local targrightshoulder = rightshoulder | |
| 2610 | ||
| 2611 | local targleftshoulder = leftshoulder | |
| 2612 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end
| |
| 2613 | doing = true | |
| 2614 | local weld2 = arm:FindFirstChildOfClass('Weld')
| |
| 2615 | local weld3 = arm2:FindFirstChildOfClass('Weld')
| |
| 2616 | local humanroot = me.HumanoidRootPart | |
| 2617 | ||
| 2618 | for i = 0,1,0.2 do | |
| 2619 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 2620 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 1.7, -0.5)* CFrame.Angles(-0.25, 1, -1.4), i) | |
| 2621 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1.6, -0.5)* CFrame.Angles(-1.5, -1, 1.1), i) | |
| 2622 | targetweld.C0 = targetweld.C0:lerp(CFrame.new(0, 1.5, 0)*CFrame.Angles(0, 0, 0), i) | |
| 2623 | if targetweld2 then | |
| 2624 | targetweld2.C0 = targetweld2.C0:lerp(CFrame.new(-1.5, 0, 0)*CFrame.Angles(0, 0, 0), i) | |
| 2625 | end | |
| 2626 | wait(0.01) | |
| 2627 | end | |
| 2628 | ||
| 2629 | audio:Stop() | |
| 2630 | audio.SoundId = "rbxassetid://536642316" | |
| 2631 | tone = math.random(1, 3) | |
| 2632 | if tone == 1 then audio.PlaybackSpeed = 0.8 audio.TimePosition = 0.08 end | |
| 2633 | if tone == 2 then audio.PlaybackSpeed = 1 audio.TimePosition = 0.1 end | |
| 2634 | if tone == 3 then audio.PlaybackSpeed = 1.2 audio.TimePosition = 0.12 end | |
| 2635 | audio:Play() | |
| 2636 | ||
| 2637 | local slightthrow = Instance.new("BodyVelocity", grabbed.Torso)
| |
| 2638 | slightthrow.Velocity = Vector3.new(0,20,0)+(me.Torso.CFrame.lookVector*20) | |
| 2639 | slightthrow.P = 5000 | |
| 2640 | slightthrow.MaxForce = Vector3.new(9000001,9000001,9000001) | |
| 2641 | local point = grabbed.Torso.Position | |
| 2642 | local aaaaaa = grabbed | |
| 2643 | liedown() | |
| 2644 | ||
| 2645 | rightshoulderz:Clone().Parent = me.Torso | |
| 2646 | leftshoulderz:Clone().Parent = me.Torso | |
| 2647 | grabbed = nil | |
| 2648 | ||
| 2649 | if humanroot:FindFirstChild('Holder') then
| |
| 2650 | humanroot.Holder:Destroy() | |
| 2651 | end | |
| 2652 | local coru = coroutine.wrap(function() | |
| 2653 | while aaaaaa and aaaaaa:FindFirstChild('Torso') and (aaaaaa.Torso.Position-point).magnitude < 5 do wait(0.001) end
| |
| 2654 | if aaaaaa:FindFirstChildOfClass('Humanoid') then
| |
| 2655 | aaaaaa:FindFirstChildOfClass('Humanoid').Name = "Humanoid"
| |
| 2656 | aaaaaa:FindFirstChildOfClass('Humanoid').JumpPower = 50
| |
| 2657 | aaaaaa:FindFirstChildOfClass('Humanoid').WalkSpeed = 16
| |
| 2658 | end | |
| 2659 | slightthrow:Remove() | |
| 2660 | end) | |
| 2661 | coru() | |
| 2662 | ||
| 2663 | for i = 0,1,0.05 do | |
| 2664 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 2665 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 2666 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0),i) | |
| 2667 | wait(0.01) | |
| 2668 | end | |
| 2669 | weld2:Destroy() | |
| 2670 | weld3:Destroy() | |
| 2671 | targetweld:Remove() | |
| 2672 | if targetweld2 then | |
| 2673 | targetweld2:Remove() | |
| 2674 | end | |
| 2675 | if rightshoulder then | |
| 2676 | rightshoulder:Clone().Parent = tors | |
| 2677 | end | |
| 2678 | if leftshoulder then | |
| 2679 | leftshoulder:Clone().Parent = tors | |
| 2680 | end | |
| 2681 | headweld:Clone().Parent = tors | |
| 2682 | rightshoulderz:Clone().Parent = me.Torso | |
| 2683 | leftshoulderz:Clone().Parent = me.Torso | |
| 2684 | acting = false | |
| 2685 | canClick = true | |
| 2686 | doing = false | |
| 2687 | end) | |
| 2688 | doit() | |
| 2689 | end | |
| 2690 | ||
| 2691 | cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new | |
| 2692 | bc=BrickColor.new | |
| 2693 | local minimumsize = Vector3.new(0.7,0.7,0.7) | |
| 2694 | local surface_between_splitted_parts = 'SmoothNoOutlines' | |
| 2695 | local fragmentable = workspace | |
| 2696 | local list = {}
| |
| 2697 | local brickcount = 0 | |
| 2698 | local storage = {}
| |
| 2699 | local fillup = 1000 | |
| 2700 | local maximumstorage = 2000 | |
| 2701 | local storage_position = Vector3.new(0,0,5000) | |
| 2702 | local stored_partsize = Vector3.new(1,1,1) | |
| 2703 | local parts_created_per_frame = 5 | |
| 2704 | ||
| 2705 | local minimumsize = Vector3.new(0.7,0.7,0.7) | |
| 2706 | local surface_between_splitted_parts = 'SmoothNoOutlines' | |
| 2707 | local fragmentable = workspace | |
| 2708 | local list = {}
| |
| 2709 | local brickcount = 0 | |
| 2710 | local storage = {}
| |
| 2711 | local fillup = 1000 | |
| 2712 | local maximumstorage = 2000 | |
| 2713 | local storage_position = Vector3.new(0,0,5000) | |
| 2714 | local stored_partsize = Vector3.new(1,1,1) | |
| 2715 | local parts_created_per_frame = 5 | |
| 2716 | ||
| 2717 | ||
| 2718 | function fragmentate(cframe,size,color,explosion_position,explosion_blastradius,backsurface,bottomsurface,frontsurface,leftsurface,rightsurface,topsurface,transparency,reflectance,material) | |
| 2719 | local xi = size.X >= minimumsize.X*(1+explosion_blastradius/16) and 2 or 1 | |
| 2720 | local yi = size.Y >= minimumsize.Y*(1+explosion_blastradius/16) and 2 or 1 | |
| 2721 | local zi = size.Z >= minimumsize.Z*(1+explosion_blastradius/16) and 2 or 1 | |
| 2722 | if xi == 1 and yi == 1 and zi == 1 or (cframe.p-explosion_position).magnitude > size.magnitude/2 + explosion_blastradius then | |
| 2723 | if xi == 1 and yi == 1 and zi == 1 then return end | |
| 2724 | if #storage > 0 then | |
| 2725 | local p = storage[1] | |
| 2726 | p.BrickColor = color | |
| 2727 | p.Size = size | |
| 2728 | p.Anchored = false | |
| 2729 | p.BackSurface = backsurface | |
| 2730 | p.BottomSurface = bottomsurface | |
| 2731 | p.FrontSurface = frontsurface | |
| 2732 | p.LeftSurface = leftsurface | |
| 2733 | p.RightSurface = rightsurface | |
| 2734 | p.TopSurface = topsurface | |
| 2735 | p.Transparency = transparency | |
| 2736 | p.CFrame = cframe | |
| 2737 | p.Reflectance = reflectance | |
| 2738 | p.Material = material | |
| 2739 | game:GetService('Debris'):AddItem(p,30)
| |
| 2740 | p:BreakJoints() | |
| 2741 | table.remove(storage,1) | |
| 2742 | else | |
| 2743 | local p = Instance.new("Part",fragmentable)
| |
| 2744 | p.BrickColor = color | |
| 2745 | p.FormFactor = "Custom" | |
| 2746 | p.Size = size | |
| 2747 | p.BackSurface = backsurface | |
| 2748 | p.BottomSurface = bottomsurface | |
| 2749 | p.FrontSurface = frontsurface | |
| 2750 | p.LeftSurface = leftsurface | |
| 2751 | p.RightSurface = rightsurface | |
| 2752 | p.TopSurface = topsurface | |
| 2753 | p.Transparency = transparency | |
| 2754 | p.Material = material | |
| 2755 | if p.Transparency>0.285 then | |
| 2756 | p.Anchored = false | |
| 2757 | else | |
| 2758 | p.Anchored=false | |
| 2759 | p.Material='Wood' | |
| 2760 | game:GetService('Debris'):AddItem(p,10)
| |
| 2761 | end | |
| 2762 | p.CFrame = cframe | |
| 2763 | p.Reflectance = reflectance | |
| 2764 | p:BreakJoints() | |
| 2765 | end | |
| 2766 | return | |
| 2767 | end | |
| 2768 | local mody = math.random(-125,125)/1000 | |
| 2769 | for y = 1,yi do | |
| 2770 | if math.random()> 0.5 then | |
| 2771 | local modx = math.random(-125,125)/1000 | |
| 2772 | for x = 1,xi do | |
| 2773 | local modz = math.random(-125,125)/1000 | |
| 2774 | for z = 1,zi do --offset = x/xi-0.75+modx) | |
| 2775 | fragmentate(cframe*CFrame.new(size.X*(xi==1 and 0 or x/xi-0.75+modx),size.Y*(yi==1 and 0 or y/yi-0.75+mody),size.Z*(zi==1 and 0 or z/zi-0.75+modz)), | |
| 2776 | Vector3.new(xi == 2 and size.X*(1-2*math.abs(x/xi-0.75+modx)) or size.X,yi == 2 and size.Y*(1-2*math.abs(y/yi-0.75+mody)) or size.Y, | |
| 2777 | zi == 2 and size.Z*(1-2*math.abs(z/zi-0.75+modz)) or size.Z or mustardfoot_was_here),color,explosion_position,explosion_blastradius, | |
| 2778 | z~=zi and surface_between_splitted_parts or backsurface,y==2 and surface_between_splitted_parts or bottomsurface, | |
| 2779 | z==2 and surface_between_splitted_parts or frontsurface,x==2 and surface_between_splitted_parts or leftsurface,x~=xi and surface_between_splitted_parts or rightsurface, | |
| 2780 | y~=yi and surface_between_splitted_parts or topsurface,transparency,reflectance,material) | |
| 2781 | end | |
| 2782 | ||
| 2783 | end | |
| 2784 | else | |
| 2785 | local modz = math.random(-125,125)/1000 | |
| 2786 | for z = 1,zi do | |
| 2787 | local modx = math.random(-125,125)/1000 | |
| 2788 | for x = 1,xi do | |
| 2789 | fragmentate(cframe*CFrame.new(size.X*(xi==1 and 0 or x/xi-0.75+modx),size.Y*(yi==1 and 0 or y/yi-0.75+mody),size.Z*(zi==1 and 0 or z/zi-0.75+modz)), | |
| 2790 | Vector3.new(xi == 2 and size.X*(1-2*math.abs(x/xi-0.75+modx)) or size.X,yi == 2 and size.Y*(1-2*math.abs(y/yi-0.75+mody)) or size.Y, | |
| 2791 | zi == 2 and size.Z*(1-2*math.abs(z/zi-0.75+modz)) or size.Z),color,explosion_position,explosion_blastradius, | |
| 2792 | z~=zi and surface_between_splitted_parts or backsurface,y==2 and surface_between_splitted_parts or bottomsurface, | |
| 2793 | z==2 and surface_between_splitted_parts or frontsurface,x==2 and surface_between_splitted_parts or leftsurface,x~=xi and surface_between_splitted_parts or rightsurface, | |
| 2794 | y~=yi and surface_between_splitted_parts or topsurface,transparency,reflectance,material) | |
| 2795 | end | |
| 2796 | end | |
| 2797 | end | |
| 2798 | end | |
| 2799 | end | |
| 2800 | ||
| 2801 | function start_fragmentation(position,radius,nuh) | |
| 2802 | local search = Region3.new(position-Vector3.new(radius,radius,radius)*1.1,position+Vector3.new(radius,radius,radius)*1.1) | |
| 2803 | repeat | |
| 2804 | local finish = false | |
| 2805 | local parts = workspace:FindPartsInRegion3WithIgnoreList(search,list,100) | |
| 2806 | for i = 1,#parts do | |
| 2807 | table.insert(list,1,parts[i]) | |
| 2808 | end | |
| 2809 | finish = true | |
| 2810 | until #parts < 100 and finish | |
| 2811 | local t = tick() | |
| 2812 | for i = 1,#list do | |
| 2813 | local p = list[i] | |
| 2814 | if p:IsA('UnionOperation') == false and p:IsA('CornerWedgePart') == false and p:IsA('TrussPart') == false and p:IsA('WedgePart') == false and p.Parent and p.Parent ~= obj1 and p.Parent.Name ~= "Projectile" and p:IsDescendantOf(fragmentable) and p:GetMass()<50000 and p.Transparency>0.285 and p.Name~='Base' and p.Parent:FindFirstChildOfClass('Humanoid') == nil and p.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and p:IsDescendantOf(me)==false then
| |
| 2815 | fragmentate(p.CFrame,p.Size,p.BrickColor,position,radius,p.BackSurface,p.BottomSurface,p.FrontSurface,p.LeftSurface,p.RightSurface,p.TopSurface,p.Transparency,p.Reflectance,p.Material) | |
| 2816 | if #storage < maximumstorage and p.Shape == "Block" then | |
| 2817 | p.Anchored = false | |
| 2818 | p.FormFactor = "Custom" | |
| 2819 | p.Size = stored_partsize | |
| 2820 | p.Position = storage_position | |
| 2821 | table.insert(storage,1,p) | |
| 2822 | else | |
| 2823 | p:Destroy() | |
| 2824 | end | |
| 2825 | end | |
| 2826 | if nuh == false and p.Parent and p.Parent ~= obj1 and p.Parent.Name ~= "Projectile" and p:IsDescendantOf(fragmentable) and p:GetMass()<53000 and p.Transparency<0.05 and p.Name~='Base' and tostring(p.Material)=='Enum.Material.Wood' and p:IsDescendantOf(me)==false then | |
| 2827 | fragmentate(p.CFrame,p.Size,p.BrickColor,position,radius,p.BackSurface,p.BottomSurface,p.FrontSurface,p.LeftSurface,p.RightSurface,p.TopSurface,p.Transparency,p.Reflectance,p.Material) | |
| 2828 | if #storage < maximumstorage and p.Shape == "Block" then | |
| 2829 | p.Anchored = false | |
| 2830 | p.Material='Wood' | |
| 2831 | p.FormFactor = "Custom" | |
| 2832 | p.Size = stored_partsize | |
| 2833 | p.Position = storage_position | |
| 2834 | table.insert(storage,1,p) | |
| 2835 | else | |
| 2836 | p:Destroy() | |
| 2837 | end | |
| 2838 | end | |
| 2839 | end | |
| 2840 | list = {}
| |
| 2841 | end | |
| 2842 | ||
| 2843 | ||
| 2844 | function fling() | |
| 2845 | local doit = coroutine.wrap(function() | |
| 2846 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') and me:FindFirstChild('HumanoidRootPart') then
| |
| 2847 | acting = true | |
| 2848 | for i=1,finishnum do | |
| 2849 | local weld2 = Instance.new('Weld',me["Right Arm"])
| |
| 2850 | weld2.Part0 = me["Right Arm"] | |
| 2851 | weld2.Part1 = me["Torso"] | |
| 2852 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 2853 | if finishnum == 1 then | |
| 2854 | for i = 0,1,0.05 do | |
| 2855 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 2856 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0),i) | |
| 2857 | wait(0.01) | |
| 2858 | end | |
| 2859 | end | |
| 2860 | audio.SoundId = "rbxassetid://166083610" | |
| 2861 | audio.PlaybackSpeed = 1 | |
| 2862 | audio.TimePosition = 0.1 | |
| 2863 | audio:Play() | |
| 2864 | if finishnum == 1 then | |
| 2865 | for i = 0,1,0.5 do | |
| 2866 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 2867 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0),i) | |
| 2868 | wait(0.001) | |
| 2869 | end | |
| 2870 | end | |
| 2871 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
| 2872 | local knofe = obj1:Clone() | |
| 2873 | for i, v in pairs(obj1:GetChildren()) do | |
| 2874 | if v:IsA('BasePart') then
| |
| 2875 | v.Transparency = 1 | |
| 2876 | end | |
| 2877 | end | |
| 2878 | knofe.Parent = workspace | |
| 2879 | knofe.Name = "Projectile" | |
| 2880 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
| 2881 | knofe:FindFirstChild("Trail", true).Enabled = true
| |
| 2882 | local heck = Instance.new('BodyVelocity',knofe.Grab)
| |
| 2883 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120 | |
| 2884 | local coru = coroutine.wrap(function() | |
| 2885 | wait(0.45) | |
| 2886 | if heck then | |
| 2887 | heck:Destroy() | |
| 2888 | end | |
| 2889 | end) | |
| 2890 | coru() | |
| 2891 | local able = true | |
| 2892 | knofe["big ass knife"].Touched:connect(function(hit) | |
| 2893 | if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Transparency < 1 and knofe.Grab.CanCollide == false and hit.Parent ~= me and hit.Parent.Parent ~= me then
| |
| 2894 | local thing = hit.Parent:FindFirstChildOfClass('Humanoid')
| |
| 2895 | local ree = hit.Parent | |
| 2896 | if thing == nil then | |
| 2897 | ree = hit.Parent.Parent | |
| 2898 | end | |
| 2899 | if ree:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 2900 | knofe:FindFirstChild("Trail", true).Enabled = false
| |
| 2901 | game:GetService('Debris'):AddItem(knofe,5)
| |
| 2902 | tone = math.random(1, 3) | |
| 2903 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 2904 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
| 2905 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
| 2906 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
| 2907 | sound.PlaybackSpeed = 1 | |
| 2908 | sound:Play() | |
| 2909 | for i, v in pairs(knofe:GetChildren()) do | |
| 2910 | if v:IsA('BasePart') then
| |
| 2911 | v.CanCollide = true | |
| 2912 | v.Anchored = true | |
| 2913 | end | |
| 2914 | end | |
| 2915 | hit.Anchored = true | |
| 2916 | if ree:FindFirstChildOfClass('Humanoid') and hit.Name == "Torso" or hit.Name == "Head" then
| |
| 2917 | ree:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 2918 | end | |
| 2919 | wait() | |
| 2920 | killz(ree,hit.Name,knofe) | |
| 2921 | else | |
| 2922 | knofe:FindFirstChild("Trail", true).Enabled = false
| |
| 2923 | heck.Velocity = Vector3.new(0,0,0) | |
| 2924 | heck:Destroy() | |
| 2925 | game:GetService('Debris'):AddItem(knofe,5)
| |
| 2926 | tone = math.random(1, 3) | |
| 2927 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 2928 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
| 2929 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
| 2930 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
| 2931 | sound.PlaybackSpeed = 1 | |
| 2932 | sound:Play() | |
| 2933 | for i, v in pairs(knofe:GetChildren()) do | |
| 2934 | if v:IsA('BasePart') then
| |
| 2935 | v.Anchored = false | |
| 2936 | end | |
| 2937 | end | |
| 2938 | hit.Anchored = true | |
| 2939 | wait(0.001) | |
| 2940 | hit.Anchored = false | |
| 2941 | for i, v in pairs(knofe:GetChildren()) do | |
| 2942 | if v:IsA('BasePart') then
| |
| 2943 | v.Anchored = false | |
| 2944 | end | |
| 2945 | end | |
| 2946 | if knofe then | |
| 2947 | local coru = coroutine.wrap(function() | |
| 2948 | if hit then | |
| 2949 | local uno = Instance.new('Part',workspace)
| |
| 2950 | local dos = Instance.new('Part',workspace)
| |
| 2951 | uno.CFrame = hit.CFrame | |
| 2952 | dos.CFrame = knofe["big ass knife"].CFrame | |
| 2953 | local weld = Instance.new('Weld',knofe["big ass knife"])
| |
| 2954 | weld.Part0 = hit | |
| 2955 | weld.Part1 = knofe["big ass knife"] | |
| 2956 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 2957 | uno:Destroy() | |
| 2958 | dos:Destroy() | |
| 2959 | end | |
| 2960 | end) | |
| 2961 | coru() | |
| 2962 | end | |
| 2963 | end | |
| 2964 | elseif hit.Parent and hit.Parent ~= me and hit.Parent.Parent ~= me and hit.CanCollide and knofe.Grab.CanCollide == false then | |
| 2965 | if hit.Transparency and (hit.Transparency<=0.285 or hit:GetMass()<=3000) then | |
| 2966 | knofe:FindFirstChild("Trail", true).Enabled = false
| |
| 2967 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 2968 | sound.SoundId = 'rbxassetid://267585646' | |
| 2969 | sound:Play() | |
| 2970 | for i,v in pairs(knofe:GetChildren()) do | |
| 2971 | if v:IsA('BasePart') then
| |
| 2972 | v.Anchored = true | |
| 2973 | end | |
| 2974 | end | |
| 2975 | wait() | |
| 2976 | heck.Velocity = Vector3.new(0,0,0) | |
| 2977 | heck:Destroy() | |
| 2978 | local uno = Instance.new('Part',workspace)
| |
| 2979 | local dos = Instance.new('Part',workspace)
| |
| 2980 | uno.CFrame = hit.CFrame | |
| 2981 | dos.CFrame = knofe["big ass knife"].CFrame | |
| 2982 | local weld = Instance.new('Weld',knofe["big ass knife"])
| |
| 2983 | weld.Part0 = hit | |
| 2984 | weld.Part1 = knofe["big ass knife"] | |
| 2985 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 2986 | uno:Destroy() | |
| 2987 | dos:Destroy() | |
| 2988 | for i,v in pairs(knofe:GetChildren()) do | |
| 2989 | if v:IsA('BasePart') then
| |
| 2990 | v.Anchored = false | |
| 2991 | end | |
| 2992 | end | |
| 2993 | game:GetService('Debris'):AddItem(knofe,5)
| |
| 2994 | for i,v in pairs(knofe:GetChildren()) do | |
| 2995 | if v:IsA('BasePart') then
| |
| 2996 | v.CanCollide = true | |
| 2997 | end | |
| 2998 | end | |
| 2999 | end | |
| 3000 | if hit.Parent and hit.Transparency>0.285 and able == true and hit:GetMass()<3000 and hit.Parent:FindFirstChildOfClass('Humanoid') == nil and (hit.Parent.Parent == nil or hit.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil) then
| |
| 3001 | knofe:FindFirstChild("Trail", true).Enabled = false
| |
| 3002 | able = false | |
| 3003 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 3004 | sound.SoundId = 'rbxassetid://144884907' | |
| 3005 | sound:Play() | |
| 3006 | local coru = coroutine.wrap(function() | |
| 3007 | start_fragmentation(knofe["big ass knife"].Position,1.25,knofe) | |
| 3008 | end) | |
| 3009 | coru() | |
| 3010 | end | |
| 3011 | end | |
| 3012 | end) | |
| 3013 | if finishnum == 1 then | |
| 3014 | for i= 0,1,0.1 do | |
| 3015 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 3016 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 3017 | wait(0.001) | |
| 3018 | end | |
| 3019 | else | |
| 3020 | for i= 0,1,0.5 do | |
| 3021 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 3022 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 3023 | wait(0.001) | |
| 3024 | end | |
| 3025 | end | |
| 3026 | for i,v in pairs(obj1:GetChildren()) do | |
| 3027 | if v:IsA('BasePart') then
| |
| 3028 | v.Transparency = 0 | |
| 3029 | end | |
| 3030 | end | |
| 3031 | weld2:Destroy() | |
| 3032 | rightshoulderz:Clone().Parent = me.Torso | |
| 3033 | end | |
| 3034 | acting = false | |
| 3035 | canClick = true | |
| 3036 | end | |
| 3037 | end) | |
| 3038 | doit() | |
| 3039 | end | |
| 3040 | ||
| 3041 | function instasplode() | |
| 3042 | local coru = coroutine.wrap(function() | |
| 3043 | acting = true | |
| 3044 | for i=1,1 do | |
| 3045 | local weld2 = Instance.new('Weld',me["Right Arm"])
| |
| 3046 | weld2.Part0 = me["Right Arm"] | |
| 3047 | weld2.Part1 = me["Torso"] | |
| 3048 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 3049 | if finishnum == 1 then | |
| 3050 | for i = 0,1,0.05 do | |
| 3051 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 3052 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0),i) | |
| 3053 | wait(0.01) | |
| 3054 | end | |
| 3055 | end | |
| 3056 | weld2.C0 = CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0) | |
| 3057 | audio.SoundId = "rbxassetid://166083610" | |
| 3058 | audio.PlaybackSpeed = 1 | |
| 3059 | audio.TimePosition = 0.1 | |
| 3060 | audio:Play() | |
| 3061 | if finishnum == 1 then | |
| 3062 | for i = 0,1,0.5 do | |
| 3063 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 3064 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0),i) | |
| 3065 | wait(0.001) | |
| 3066 | end | |
| 3067 | end | |
| 3068 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
| 3069 | local knofe = obj1:Clone() | |
| 3070 | for i,v in pairs(obj1:GetChildren()) do | |
| 3071 | if v:IsA('BasePart') then
| |
| 3072 | v.Transparency = 1 | |
| 3073 | end | |
| 3074 | end | |
| 3075 | knofe.Parent = workspace | |
| 3076 | knofe.Name = "Projectile" | |
| 3077 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
| 3078 | knofe:FindFirstChild("Trail", true).Enabled = false
| |
| 3079 | fireofjesUS = Instance.new("Fire", knofe.Grab)
| |
| 3080 | local heck = Instance.new('BodyVelocity',knofe.Grab)
| |
| 3081 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120 | |
| 3082 | local coru = coroutine.wrap(function() | |
| 3083 | wait(0.45) | |
| 3084 | if heck then | |
| 3085 | heck:Destroy() | |
| 3086 | end | |
| 3087 | end) | |
| 3088 | coru() | |
| 3089 | knofe["big ass knife"].Touched:connect(function(hit) | |
| 3090 | if hit.Parent ~= me and hit.Parent.Parent ~= me and hit.Transparency < 1 and knofe.Grab.CanCollide == false then | |
| 3091 | heck.Velocity = Vector3.new(0,0,0) | |
| 3092 | heck:Destroy() | |
| 3093 | for i,v in pairs(knofe:GetChildren()) do | |
| 3094 | if v:IsA('BasePart') then
| |
| 3095 | v.CanCollide = true | |
| 3096 | end | |
| 3097 | end | |
| 3098 | local hum = hit.Parent:FindFirstChildOfClass('Humanoid')
| |
| 3099 | if hum == nil then | |
| 3100 | hum = hit.Parent.Parent:FindFirstChildOfClass('Humanoid')
| |
| 3101 | end | |
| 3102 | if knofe then | |
| 3103 | local coru = coroutine.wrap(function() | |
| 3104 | if hit then | |
| 3105 | local uno = Instance.new('Part',workspace)
| |
| 3106 | local dos = Instance.new('Part',workspace)
| |
| 3107 | uno.CFrame = hit.CFrame | |
| 3108 | dos.CFrame = knofe["big ass knife"].CFrame | |
| 3109 | local weld = Instance.new('Weld',knofe["big ass knife"])
| |
| 3110 | weld.Part0 = hit | |
| 3111 | weld.Part1 = knofe["big ass knife"] | |
| 3112 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 3113 | uno:Destroy() | |
| 3114 | dos:Destroy() | |
| 3115 | end | |
| 3116 | end) | |
| 3117 | coru() | |
| 3118 | end | |
| 3119 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 3120 | sound.Name = "BOOM" | |
| 3121 | sound.EmitterSize = 25 | |
| 3122 | sound.SoundId = 'rbxassetid://476477344' | |
| 3123 | sound.Volume = 0.5 | |
| 3124 | sound:Play() | |
| 3125 | local exppart = Instance.new("Part", game.Workspace)
| |
| 3126 | exppart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 3127 | exppart.Anchored = true | |
| 3128 | exppart.CanCollide = false | |
| 3129 | exppart.CFrame = CFrame.new(knofe.Grab.CFrame.p) | |
| 3130 | exppart.Transparency = 1 | |
| 3131 | local expaccent = Instance.new("ParticleEmitter", exppart)
| |
| 3132 | expaccent.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 0))})
| |
| 3133 | expaccent.LightEmission = 0.2 | |
| 3134 | expaccent.LightInfluence = 0.3 | |
| 3135 | expaccent.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0)})
| |
| 3136 | expaccent.Acceleration = Vector3.new(0, 30, 0) | |
| 3137 | expaccent.Drag = 15 | |
| 3138 | expaccent.LockedToPart = false | |
| 3139 | expaccent.Lifetime = NumberRange.new(0.5, 1.5) | |
| 3140 | expaccent.Rate = 2000 | |
| 3141 | expaccent.Speed = NumberRange.new(0,0) | |
| 3142 | expaccent.SpreadAngle = Vector2.new(360, 360) | |
| 3143 | expaccent:Clone().Parent = exppart | |
| 3144 | expaccent:Clone().Parent = exppart | |
| 3145 | local exp = Instance.new('Explosion',game.Workspace)
| |
| 3146 | exp.Position = knofe["big ass knife"].Position | |
| 3147 | exp.ExplosionType = Enum.ExplosionType.NoCraters | |
| 3148 | exp.BlastRadius = 5 | |
| 3149 | exp.Visible = false | |
| 3150 | exp.BlastPressure = 0 | |
| 3151 | exp.DestroyJointRadiusPercent = 0 | |
| 3152 | exp.Hit:connect(function(hit) | |
| 3153 | if hit.Parent and hit.Parent ~= me and hit.Parent.Name ~= "bitch ass knife" then | |
| 3154 | wait(0.001) | |
| 3155 | tgt = hit | |
| 3156 | local coru=coroutine.wrap(function(tgtt) | |
| 3157 | local fireofgods = Instance.new("Fire", tgtt)
| |
| 3158 | fireofgods.Size = 0 | |
| 3159 | fireofgods.Heat = 0 | |
| 3160 | local fireofgodsaccent = expaccent:Clone() | |
| 3161 | fireofgodsaccent.Parent = hit | |
| 3162 | fireofgodsaccent.Rate = 0 | |
| 3163 | fireofgodsaccent.Speed = NumberRange.new(5, 50) | |
| 3164 | fireofgodsaccent.SpreadAngle = Vector2.new(45, 45) | |
| 3165 | fireofgodsaccent.Acceleration = Vector3.new(0, 20, 0) | |
| 3166 | ||
| 3167 | while fireofgods.Size < 10 do | |
| 3168 | fireofgods.Size = fireofgods.Size + 0.1 | |
| 3169 | fireofgods.Heat = fireofgods.Heat + 0.1 | |
| 3170 | fireofgodsaccent.Rate = fireofgodsaccent.Rate + 1 | |
| 3171 | wait() | |
| 3172 | end | |
| 3173 | if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') == nil and hit.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil then
| |
| 3174 | hit:BreakJoints() | |
| 3175 | elseif hit.Parent and hit.Parent:IsA('Accessory') then
| |
| 3176 | for i,v in pairs(hit:GetChildren()) do | |
| 3177 | if v:IsA('SpecialMesh') then
| |
| 3178 | v.TextureId = "" | |
| 3179 | end | |
| 3180 | end | |
| 3181 | end | |
| 3182 | hit.BrickColor = BrickColor.new("Black")
| |
| 3183 | for i,v in pairs(hit.Parent:GetChildren()) do | |
| 3184 | if v:IsA('Shirt') or v:IsA('Pants') then
| |
| 3185 | v:Destroy() | |
| 3186 | end | |
| 3187 | end | |
| 3188 | ||
| 3189 | while fireofgods.Size > 5 do | |
| 3190 | fireofgods.Size = fireofgods.Size - 0.1 | |
| 3191 | fireofgods.Heat = fireofgods.Heat - 0.1 | |
| 3192 | wait() | |
| 3193 | end | |
| 3194 | fireofgods:Destroy() | |
| 3195 | if hit.Parent then | |
| 3196 | if hit.Parent:FindFirstChildOfClass('Humanoid') == nil and hit.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil then
| |
| 3197 | local p = hit | |
| 3198 | fragmentate(p.CFrame,p.Size,p.BrickColor,p.Position,0.01,p.BackSurface,p.BottomSurface,p.FrontSurface,p.LeftSurface,p.RightSurface,p.TopSurface,p.Transparency,p.Reflectance,p.Material) | |
| 3199 | hit:Remove() | |
| 3200 | elseif hit.Parent:FindFirstChildOfClass('Humanoid') ~= nil then
| |
| 3201 | print(hit.Name) | |
| 3202 | if hit.Name == "Torso" or hit.Name == "Head" then | |
| 3203 | print('ohhh YAAAA')
| |
| 3204 | hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 3205 | end | |
| 3206 | wait() | |
| 3207 | killz(hit.Parent,hit.Name,nil,nil,false,false,true) | |
| 3208 | end | |
| 3209 | end | |
| 3210 | end) | |
| 3211 | coru(tgt) | |
| 3212 | end | |
| 3213 | end) | |
| 3214 | local explosionaccenttimeout = coroutine.wrap(function() | |
| 3215 | wait(0.2) | |
| 3216 | for i, exploodn in pairs(exppart:GetChildren()) do | |
| 3217 | exploodn.Enabled = false | |
| 3218 | end | |
| 3219 | wait(2) | |
| 3220 | for i, exploodn in pairs(exppart:GetChildren()) do | |
| 3221 | exploodn:Remove() | |
| 3222 | end | |
| 3223 | end) | |
| 3224 | explosionaccenttimeout() | |
| 3225 | for i,v in pairs(knofe:GetChildren()) do | |
| 3226 | if v:IsA('BasePart') then
| |
| 3227 | v.Transparency = 1 | |
| 3228 | end | |
| 3229 | end | |
| 3230 | exp.AncestryChanged:connect(function() knofe:Destroy() end) | |
| 3231 | coru() | |
| 3232 | end | |
| 3233 | end) | |
| 3234 | if finishnum == 1 then | |
| 3235 | for i= 0,1,0.1 do | |
| 3236 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 3237 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 3238 | wait(0.001) | |
| 3239 | end | |
| 3240 | else | |
| 3241 | wait(0.1) | |
| 3242 | end | |
| 3243 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 3244 | for i,v in pairs(obj1:GetChildren()) do | |
| 3245 | if v:IsA('BasePart') then
| |
| 3246 | v.Transparency = 0 | |
| 3247 | end | |
| 3248 | end | |
| 3249 | weld2:Destroy() | |
| 3250 | rightshoulderz:Clone().Parent = me.Torso | |
| 3251 | end | |
| 3252 | acting = false | |
| 3253 | canClick = true | |
| 3254 | end) | |
| 3255 | coru() | |
| 3256 | end | |
| 3257 | ||
| 3258 | function fireworkit() | |
| 3259 | local coru = coroutine.wrap(function() | |
| 3260 | acting = true | |
| 3261 | local ree = 1 | |
| 3262 | if finishnum > 1 then | |
| 3263 | ree = 3 | |
| 3264 | end | |
| 3265 | for i=1,ree do | |
| 3266 | local weld2 = Instance.new('Weld',me["Right Arm"])
| |
| 3267 | weld2.Part0 = me["Right Arm"] | |
| 3268 | weld2.Part1 = me["Torso"] | |
| 3269 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 3270 | weld2.C0 = CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0) | |
| 3271 | audio.SoundId = "rbxassetid://166083610" | |
| 3272 | audio.PlaybackSpeed = 1 | |
| 3273 | audio.TimePosition = 0.1 | |
| 3274 | audio:Play() | |
| 3275 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
| 3276 | local knofe = obj1:Clone() | |
| 3277 | for i,v in pairs(obj1:GetChildren()) do | |
| 3278 | if v:IsA('BasePart') then
| |
| 3279 | v.Transparency = 1 | |
| 3280 | end | |
| 3281 | end | |
| 3282 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 3283 | sound.Volume = 0.25 | |
| 3284 | sound.EmitterSize = 200 | |
| 3285 | sound.MaxDistance = 300 | |
| 3286 | sound.SoundId = 'rbxassetid://551051176' | |
| 3287 | sound:Play() | |
| 3288 | knofe.Parent = workspace | |
| 3289 | knofe.Name = "Projectile" | |
| 3290 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
| 3291 | local partic = Instance.new('ParticleEmitter',knofe.Grab)
| |
| 3292 | partic.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(0.4,Color3.fromRGB(255,125,0)),ColorSequenceKeypoint.new(0.8,Color3.new(1,1,0)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
| |
| 3293 | partic.LightEmission = 0.5 | |
| 3294 | partic.LightInfluence = 0 | |
| 3295 | partic.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5),NumberSequenceKeypoint.new(1,0.15)})
| |
| 3296 | partic.Rotation = NumberRange.new(0,90) | |
| 3297 | partic.SpreadAngle = Vector2.new(5,5) | |
| 3298 | partic.Speed = NumberRange.new(20) | |
| 3299 | partic.Texture = 'rbxassetid://603193846' | |
| 3300 | partic.EmissionDirection = Enum.NormalId.Left | |
| 3301 | partic.Lifetime = NumberRange.new(0.5,1) | |
| 3302 | partic.Rate = 100 | |
| 3303 | local heck = Instance.new('BodyVelocity',knofe.Grab)
| |
| 3304 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*240 | |
| 3305 | local coru=coroutine.wrap(function() | |
| 3306 | wait(1.2) | |
| 3307 | sound:Destroy() | |
| 3308 | local sound2 = Instance.new('Sound',workspace)
| |
| 3309 | sound2.SoundId = 'rbxassetid://138080762' | |
| 3310 | sound2:Play() | |
| 3311 | if heck then | |
| 3312 | heck:Destroy() | |
| 3313 | end | |
| 3314 | for i,v in pairs(knofe:GetChildren()) do | |
| 3315 | v.Anchored = true | |
| 3316 | end | |
| 3317 | partic.Enabled = false | |
| 3318 | local colorscheme = math.random(1,4) | |
| 3319 | --1 - red & orange | |
| 3320 | --2 - blue & pink | |
| 3321 | --3 - green & purple | |
| 3322 | --4 - blue, red, white | |
| 3323 | local colar1 = Color3.fromRGB(255,0,0) | |
| 3324 | local colar2 = Color3.fromRGB(255,125,0) | |
| 3325 | local colar3 = Color3.fromRGB(255,255,255) | |
| 3326 | if colorscheme == 2 then | |
| 3327 | colar1 = Color3.fromRGB(0,132,255) | |
| 3328 | colar2 = Color3.fromRGB(243,105,255) | |
| 3329 | elseif colorscheme == 3 then | |
| 3330 | colar1 = Color3.fromRGB(76,255,0) | |
| 3331 | colar2 = Color3.fromRGB(128,0,255) | |
| 3332 | elseif colorscheme == 4 then | |
| 3333 | colar2 = Color3.fromRGB(0,132,255) | |
| 3334 | end | |
| 3335 | local partic2 = Instance.new('ParticleEmitter',knofe.Grab)
| |
| 3336 | partic2.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,colar1),ColorSequenceKeypoint.new(1,colar1)})
| |
| 3337 | partic2.LightEmission = 0.5 | |
| 3338 | partic2.LightInfluence = 0 | |
| 3339 | partic2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5),NumberSequenceKeypoint.new(1,0.1)})
| |
| 3340 | partic2.Rotation = NumberRange.new(0,90) | |
| 3341 | partic2.SpreadAngle = Vector2.new(180,180) | |
| 3342 | partic2.Speed = NumberRange.new(20) | |
| 3343 | partic2.Texture = 'rbxassetid://603193846' | |
| 3344 | partic2.EmissionDirection = Enum.NormalId.Right | |
| 3345 | partic2.Lifetime = NumberRange.new(2,2.5) | |
| 3346 | partic2.Rate = 1000 | |
| 3347 | partic2.Drag = 1 | |
| 3348 | local partic3 = partic2:Clone() | |
| 3349 | partic3.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,colar2),ColorSequenceKeypoint.new(1,colar2)})
| |
| 3350 | partic3.Parent = knofe.Grab | |
| 3351 | if colorscheme == 4 then | |
| 3352 | local partic4 = partic2:Clone() | |
| 3353 | partic4.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,colar3),ColorSequenceKeypoint.new(1,colar3)})
| |
| 3354 | partic4.Parent = knofe.Grab | |
| 3355 | end | |
| 3356 | wait(1) | |
| 3357 | for i,v in pairs(knofe.Grab:GetChildren()) do | |
| 3358 | if v:IsA('ParticleEmitter') then
| |
| 3359 | v.Enabled = false | |
| 3360 | end | |
| 3361 | end | |
| 3362 | sound:Destroy() | |
| 3363 | wait(2) | |
| 3364 | knofe:Destroy() | |
| 3365 | end) | |
| 3366 | coru() | |
| 3367 | wait(0.1) | |
| 3368 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 3369 | for i,v in pairs(obj1:GetChildren()) do | |
| 3370 | if v:IsA('BasePart') then
| |
| 3371 | v.Transparency = 0 | |
| 3372 | end | |
| 3373 | end | |
| 3374 | weld2:Destroy() | |
| 3375 | rightshoulderz:Clone().Parent = me.Torso | |
| 3376 | end | |
| 3377 | acting = false | |
| 3378 | canClick = true | |
| 3379 | end) | |
| 3380 | coru() | |
| 3381 | end | |
| 3382 | ||
| 3383 | function paralyze() | |
| 3384 | local coru = coroutine.wrap(function() | |
| 3385 | if paralyzed == true then return end | |
| 3386 | paralyzed = true | |
| 3387 | local arm = me["Right Arm"] | |
| 3388 | local tors = grabbed.Torso | |
| 3389 | local arm2 = me["Left Arm"] | |
| 3390 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end
| |
| 3391 | doing = true | |
| 3392 | local weld2 = arm:FindFirstChildOfClass('Weld')
| |
| 3393 | local weld3 = arm2:FindFirstChildOfClass('Weld')
| |
| 3394 | local humanroot = me.HumanoidRootPart | |
| 3395 | for i = 0,1,0.075 do | |
| 3396 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-2, 0, -1.5), i) | |
| 3397 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1, -0.5)* CFrame.Angles(-1.4, 0, 1.1), i) | |
| 3398 | wait(0.01) | |
| 3399 | end | |
| 3400 | for i = 0,1,0.30 do | |
| 3401 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-0.75, 0, -1.75), i) | |
| 3402 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1, -0.5)* CFrame.Angles(-1.4, 0, 1.1), i) | |
| 3403 | wait(0.01) | |
| 3404 | end | |
| 3405 | killz(grabbed,'Left Leg') | |
| 3406 | killz(grabbed,'Left Arm') | |
| 3407 | killz(grabbed,'Right Leg') | |
| 3408 | killz(grabbed,'Right Arm') | |
| 3409 | ||
| 3410 | for i, v in pairs(grabbed:GetChildren()) do | |
| 3411 | if v.Name == "Part" then | |
| 3412 | v.CanCollide = false | |
| 3413 | end | |
| 3414 | end | |
| 3415 | ||
| 3416 | audio:Stop() | |
| 3417 | audio.SoundId = "rbxassetid://2801263" | |
| 3418 | tone = math.random(1, 3) | |
| 3419 | if tone == 1 then audio.PlaybackSpeed = 0.8 audio.TimePosition = 0 end | |
| 3420 | if tone == 2 then audio.PlaybackSpeed = 1 audio.TimePosition = 0 end | |
| 3421 | if tone == 3 then audio.PlaybackSpeed = 1.2 audio.TimePosition = 0 end | |
| 3422 | audio:Play() | |
| 3423 | ||
| 3424 | local bleedpart = Instance.new("Part", grabbed)
| |
| 3425 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 3426 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 3427 | bleedpart.CanCollide = false | |
| 3428 | bleedpart.Position = grabbed.Head.Position + Vector3.new(0, 1, 0) | |
| 3429 | bleedpart.Transparency = 1 | |
| 3430 | ||
| 3431 | local bleedpartweld = Instance.new("Weld", grabbed.Torso)
| |
| 3432 | bleedpartweld.Part0 = grabbed.Torso | |
| 3433 | bleedpartweld.Part1 = bleedpart | |
| 3434 | bleedpartweld.C0 = CFrame.Angles(-1, 0, -0.35) * CFrame.new(0, 1, 0.8) | |
| 3435 | local cuntruu=coroutine.wrap(function() | |
| 3436 | bleed(bleedpart) | |
| 3437 | end) | |
| 3438 | local thicc = coroutine.wrap(function() | |
| 3439 | wait(3) | |
| 3440 | bleedpart:Remove() | |
| 3441 | end) | |
| 3442 | cuntruu() | |
| 3443 | thicc() | |
| 3444 | ||
| 3445 | for i = 0,1,0.075 do | |
| 3446 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-1.5, 0, -1.3), i) | |
| 3447 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1, -0.5)* CFrame.Angles(-1.5, 0, 1.1), i) | |
| 3448 | wait(0.01) | |
| 3449 | end | |
| 3450 | acting = true | |
| 3451 | canClick = true | |
| 3452 | doing = false | |
| 3453 | end) | |
| 3454 | coru() | |
| 3455 | end | |
| 3456 | ||
| 3457 | function explode() | |
| 3458 | local coru = coroutine.wrap(function() | |
| 3459 | acting = true | |
| 3460 | for i=1,finishnum do | |
| 3461 | local weld2 = Instance.new('Weld',me["Right Arm"])
| |
| 3462 | weld2.Part0 = me["Right Arm"] | |
| 3463 | weld2.Part1 = me["Torso"] | |
| 3464 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 3465 | if finishnum == 1 then | |
| 3466 | for i = 0,1,0.05 do | |
| 3467 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 3468 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0),i) | |
| 3469 | wait(0.01) | |
| 3470 | end | |
| 3471 | end | |
| 3472 | weld2.C0 = CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0) | |
| 3473 | audio.SoundId = "rbxassetid://166083610" | |
| 3474 | audio.PlaybackSpeed = 1 | |
| 3475 | audio.TimePosition = 0.1 | |
| 3476 | audio:Play() | |
| 3477 | if finishnum == 1 then | |
| 3478 | for i = 0,1,0.5 do | |
| 3479 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 3480 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0),i) | |
| 3481 | wait(0.001) | |
| 3482 | end | |
| 3483 | end | |
| 3484 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
| 3485 | local knofe = obj1:Clone() | |
| 3486 | for i,v in pairs(obj1:GetChildren()) do | |
| 3487 | if v:IsA('BasePart') then
| |
| 3488 | v.Transparency = 1 | |
| 3489 | end | |
| 3490 | end | |
| 3491 | knofe.Parent = workspace | |
| 3492 | knofe.Name = "Projectile" | |
| 3493 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
| 3494 | knofe:FindFirstChild("Trail", true).Enabled = false
| |
| 3495 | local heck = Instance.new('BodyVelocity',knofe.Grab)
| |
| 3496 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120 | |
| 3497 | local coru = coroutine.wrap(function() | |
| 3498 | wait(0.45) | |
| 3499 | if heck then | |
| 3500 | heck:Destroy() | |
| 3501 | end | |
| 3502 | end) | |
| 3503 | coru() | |
| 3504 | knofe["big ass knife"].Touched:connect(function(hit) | |
| 3505 | if hit.Parent ~= me and hit.Parent.Parent ~= me and hit.Transparency < 1 and knofe.Grab.CanCollide == false then | |
| 3506 | heck.Velocity = Vector3.new(0,0,0) | |
| 3507 | heck:Destroy() | |
| 3508 | for i,v in pairs(knofe:GetChildren()) do | |
| 3509 | if v:IsA('BasePart') then
| |
| 3510 | v.CanCollide = true | |
| 3511 | end | |
| 3512 | end | |
| 3513 | local hum = hit.Parent:FindFirstChildOfClass('Humanoid')
| |
| 3514 | if hum == nil then | |
| 3515 | hum = hit.Parent.Parent:FindFirstChildOfClass('Humanoid')
| |
| 3516 | end | |
| 3517 | if hum then | |
| 3518 | tone = math.random(1, 3) | |
| 3519 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 3520 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
| 3521 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
| 3522 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
| 3523 | sound.PlaybackSpeed = 1 | |
| 3524 | sound:Play() | |
| 3525 | else | |
| 3526 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 3527 | sound.SoundId = 'rbxassetid://267585646' | |
| 3528 | sound:Play() | |
| 3529 | end | |
| 3530 | if knofe then | |
| 3531 | local coru = coroutine.wrap(function() | |
| 3532 | if hit then | |
| 3533 | local uno = Instance.new('Part',workspace)
| |
| 3534 | local dos = Instance.new('Part',workspace)
| |
| 3535 | uno.CFrame = hit.CFrame | |
| 3536 | dos.CFrame = knofe["big ass knife"].CFrame | |
| 3537 | local weld = Instance.new('Weld',knofe["big ass knife"])
| |
| 3538 | weld.Part0 = hit | |
| 3539 | weld.Part1 = knofe["big ass knife"] | |
| 3540 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 3541 | uno:Destroy() | |
| 3542 | dos:Destroy() | |
| 3543 | end | |
| 3544 | end) | |
| 3545 | coru() | |
| 3546 | end | |
| 3547 | local coru = coroutine.wrap(function() | |
| 3548 | for i=1,15,0.7 do | |
| 3549 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 3550 | if knofe then | |
| 3551 | if knofe.serration.BrickColor == BrickColor.new('Really red') then
| |
| 3552 | for i, v in pairs(knofe:GetChildren()) do | |
| 3553 | if v.Name == "big ass knife" or v.Name == "serration" or v.Name == "knifetip1" or v.Name == "fricc" then | |
| 3554 | v.BrickColor = BrickColor.new('Lily white')
| |
| 3555 | v.Material = Enum.Material.SmoothPlastic | |
| 3556 | end | |
| 3557 | end | |
| 3558 | else | |
| 3559 | for i,v in pairs(knofe:GetChildren()) do | |
| 3560 | if v.Name == "big ass knife" or v.Name == "serration" or v.Name == "knifetip1" or v.Name == "fricc" then | |
| 3561 | v.BrickColor = BrickColor.new('Really red')
| |
| 3562 | v.Material = Enum.Material.Neon | |
| 3563 | sound.SoundId = 'rbxassetid://300473653' | |
| 3564 | sound.Volume = 0.75 | |
| 3565 | sound.TimePosition = 0.05 | |
| 3566 | sound.EmitterSize = 25 | |
| 3567 | sound.PlaybackSpeed = 1 | |
| 3568 | sound:Play() | |
| 3569 | end | |
| 3570 | end | |
| 3571 | end | |
| 3572 | wait(1/i) | |
| 3573 | sound:Destroy() | |
| 3574 | end | |
| 3575 | end | |
| 3576 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 3577 | sound.Name = "BOOM" | |
| 3578 | sound.EmitterSize = 25 | |
| 3579 | sound.SoundId = 'rbxassetid://12222084' | |
| 3580 | sound.TimePosition = 0.1 | |
| 3581 | sound.Volume = 0.5 | |
| 3582 | sound:Play() | |
| 3583 | local exppart = Instance.new("Part", game.Workspace)
| |
| 3584 | exppart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 3585 | exppart.Anchored = true | |
| 3586 | exppart.CanCollide = false | |
| 3587 | exppart.CFrame = CFrame.new(knofe.Grab.CFrame.p) | |
| 3588 | exppart.Transparency = 1 | |
| 3589 | local expaccent = Instance.new("ParticleEmitter", exppart)
| |
| 3590 | expaccent.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 0))})
| |
| 3591 | expaccent.LightEmission = 0.2 | |
| 3592 | expaccent.LightInfluence = 0.3 | |
| 3593 | expaccent.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0)})
| |
| 3594 | expaccent.Acceleration = Vector3.new(0, -8, 0) | |
| 3595 | expaccent.Drag = 15 | |
| 3596 | expaccent.LockedToPart = true | |
| 3597 | expaccent.Lifetime = NumberRange.new(0.5, 1.5) | |
| 3598 | expaccent.Rate = 2000 | |
| 3599 | expaccent.Speed = NumberRange.new(10, 150) | |
| 3600 | expaccent.SpreadAngle = Vector2.new(360, 360) | |
| 3601 | ||
| 3602 | local exp = Instance.new('Explosion',game.Workspace)
| |
| 3603 | exp.Position = knofe["big ass knife"].Position | |
| 3604 | exp.ExplosionType = Enum.ExplosionType.NoCraters | |
| 3605 | exp.BlastRadius = 10 | |
| 3606 | exp.BlastPressure = 100000 | |
| 3607 | exp.DestroyJointRadiusPercent = 1 | |
| 3608 | exp.Hit:connect(function(hit) | |
| 3609 | if hit.Parent and hit.Parent ~= me and hit.Parent:FindFirstChildOfClass('Humanoid') then
| |
| 3610 | if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Name == "Torso" or hit.Name == "Head" then
| |
| 3611 | hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 3612 | end | |
| 3613 | wait(0.001) | |
| 3614 | local coru=coroutine.wrap(function() | |
| 3615 | killz(hit.Parent,'Head',knofe,exp) | |
| 3616 | end) | |
| 3617 | coru() | |
| 3618 | elseif hit.Parent and hit.Parent ~= workspace and hit.Parent ~= me then | |
| 3619 | if hit.Parent.Name ~= "Projectile" then | |
| 3620 | hit.Parent:BreakJoints() | |
| 3621 | end | |
| 3622 | elseif hit.Parent and hit.Parent ~= me then | |
| 3623 | hit:BreakJoints() | |
| 3624 | end | |
| 3625 | end) | |
| 3626 | local explosionaccenttimeout = coroutine.wrap(function() | |
| 3627 | wait(0.2) | |
| 3628 | expaccent.Enabled = false | |
| 3629 | wait(2) | |
| 3630 | exppart:Remove() | |
| 3631 | end) | |
| 3632 | explosionaccenttimeout() | |
| 3633 | for i,v in pairs(knofe:GetChildren()) do | |
| 3634 | if v:IsA('BasePart') then
| |
| 3635 | v.Transparency = 1 | |
| 3636 | end | |
| 3637 | end | |
| 3638 | exp.AncestryChanged:connect(function() knofe:Destroy() end) | |
| 3639 | end) | |
| 3640 | coru() | |
| 3641 | end | |
| 3642 | end) | |
| 3643 | if finishnum == 1 then | |
| 3644 | for i= 0,1,0.1 do | |
| 3645 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 3646 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 3647 | wait(0.001) | |
| 3648 | end | |
| 3649 | else | |
| 3650 | wait(0.1) | |
| 3651 | end | |
| 3652 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 3653 | for i,v in pairs(obj1:GetChildren()) do | |
| 3654 | if v:IsA('BasePart') then
| |
| 3655 | v.Transparency = 0 | |
| 3656 | end | |
| 3657 | end | |
| 3658 | weld2:Destroy() | |
| 3659 | rightshoulderz:Clone().Parent = me.Torso | |
| 3660 | end | |
| 3661 | acting = false | |
| 3662 | canClick = true | |
| 3663 | end) | |
| 3664 | coru() | |
| 3665 | end | |
| 3666 | ||
| 3667 | function release() | |
| 3668 | if grabbed.Torso:FindFirstChild("TargetWeld") == nil or grabbed:FindFirstChildOfClass('Humanoid').Health <= 0 then return end
| |
| 3669 | targetweld = grabbed.Torso.TargetWeld | |
| 3670 | local ree= grabbed:FindFirstChild("Left Arm")
| |
| 3671 | targetweld2 = nil | |
| 3672 | if ree and ree:FindFirstChild("Weld") then
| |
| 3673 | targetweld2 = ree.Weld | |
| 3674 | end | |
| 3675 | for i, v in pairs(grabbed:GetChildren()) do | |
| 3676 | if v.Name == "Part" then | |
| 3677 | v.CanCollide = true | |
| 3678 | end | |
| 3679 | end | |
| 3680 | paralyzed = false | |
| 3681 | local doit = coroutine.wrap(function() | |
| 3682 | local arm = me["Right Arm"] | |
| 3683 | local tors = grabbed.Torso | |
| 3684 | local arm2 = me["Left Arm"] | |
| 3685 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end
| |
| 3686 | doing = true | |
| 3687 | local weld2 = arm:FindFirstChildOfClass('Weld')
| |
| 3688 | local weld3 = arm2:FindFirstChildOfClass('Weld')
| |
| 3689 | local humanroot = me.HumanoidRootPart | |
| 3690 | ||
| 3691 | if grabbed:FindFirstChildOfClass('Humanoid') then
| |
| 3692 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = false
| |
| 3693 | end | |
| 3694 | ||
| 3695 | rightshoulderz:Clone().Parent = me.Torso | |
| 3696 | leftshoulderz:Clone().Parent = me.Torso | |
| 3697 | if grabbed:FindFirstChildOfClass('Humanoid') then
| |
| 3698 | grabbed:FindFirstChildOfClass('Humanoid').Name = "Humanoid"
| |
| 3699 | grabbed:FindFirstChildOfClass('Humanoid').JumpPower = 50
| |
| 3700 | grabbed:FindFirstChildOfClass('Humanoid').WalkSpeed = 16
| |
| 3701 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = false
| |
| 3702 | end | |
| 3703 | grabbed = nil | |
| 3704 | ||
| 3705 | if humanroot:FindFirstChild('Holder') then
| |
| 3706 | humanroot.Holder:Destroy() | |
| 3707 | end | |
| 3708 | ||
| 3709 | for i = 0,1,0.1 do | |
| 3710 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 3711 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 3712 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0),i) | |
| 3713 | targetweld.C0 = targetweld.C0:lerp(CFrame.new(0, 1.5, 0)*CFrame.Angles(0, 0, 0), i) | |
| 3714 | if targetweld2 then | |
| 3715 | targetweld2.C0 = targetweld2.C0:lerp(CFrame.new(-1.5, 0, 0)*CFrame.Angles(0, 0, 0), i) | |
| 3716 | end | |
| 3717 | wait(0.01) | |
| 3718 | end | |
| 3719 | ||
| 3720 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0.2) | |
| 3721 | weld2:Destroy() | |
| 3722 | weld3:Destroy() | |
| 3723 | targetweld:Remove() | |
| 3724 | if targetweld2 then | |
| 3725 | targetweld2:Remove() | |
| 3726 | end | |
| 3727 | if rightshoulder then | |
| 3728 | rightshoulder:Clone().Parent = tors | |
| 3729 | end | |
| 3730 | if leftshoulder then | |
| 3731 | leftshoulder:Clone().Parent = tors | |
| 3732 | end | |
| 3733 | headweld:Clone().Parent = tors | |
| 3734 | rightshoulderz:Clone().Parent = me.Torso | |
| 3735 | leftshoulderz:Clone().Parent = me.Torso | |
| 3736 | acting = false | |
| 3737 | canClick = true | |
| 3738 | doing = false | |
| 3739 | end) | |
| 3740 | doit() | |
| 3741 | end | |
| 3742 | ||
| 3743 | function stabwithpassion() | |
| 3744 | local doit = coroutine.wrap(function() | |
| 3745 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') and me:FindFirstChild('HumanoidRootPart') and me:FindFirstChild('Left Arm') then
| |
| 3746 | acting = true | |
| 3747 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed + 10
| |
| 3748 | local arm = me["Right Arm"] | |
| 3749 | local tors = me.Torso | |
| 3750 | local arm2 = me["Left Arm"] | |
| 3751 | local humanroot = me.HumanoidRootPart | |
| 3752 | local weld = Instance.new('Weld',tors)
| |
| 3753 | weld.Part0 = tors | |
| 3754 | weld.Part1 = humanroot | |
| 3755 | weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0, 0, 0) | |
| 3756 | local weld2 = Instance.new('Weld',arm)
| |
| 3757 | weld2.Part0 = arm | |
| 3758 | weld2.Part1 = tors | |
| 3759 | weld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
| 3760 | local weld3 = Instance.new('Weld',arm2)
| |
| 3761 | weld3.Part0 = arm2 | |
| 3762 | weld3.Part1 = tors | |
| 3763 | weld3.C0 = CFrame.new(1.5,0,-0.3) * CFrame.Angles(0.3,0.1,0) | |
| 3764 | ||
| 3765 | for i = 0,1,0.15 do | |
| 3766 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end
| |
| 3767 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(20),0),i) | |
| 3768 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.2,1.3,0.4)*CFrame.Angles(0.5,0,-1.2),i) | |
| 3769 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.fromEulerAnglesXYZ(1.55, math.rad(90), -1.55) * CFrame.new(0, 0.95, 0), i) | |
| 3770 | wait(0.01) | |
| 3771 | end | |
| 3772 | wait(0.001) | |
| 3773 | trail.Enabled = true | |
| 3774 | stabbing = true | |
| 3775 | audio2.SoundId = 'rbxassetid://608537390' | |
| 3776 | audio2:Play() | |
| 3777 | for i = 0,1,0.2 do | |
| 3778 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end
| |
| 3779 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(-45),0),i) | |
| 3780 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.6,0.8,-1)*CFrame.Angles(math.rad(-90),0,-1),i) | |
| 3781 | wait(0.01) | |
| 3782 | end | |
| 3783 | trail.Enabled = false | |
| 3784 | wait(0.1) | |
| 3785 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed - 10
| |
| 3786 | stabbing = false | |
| 3787 | wait(0.001) | |
| 3788 | for i = 0,1,0.075 do | |
| 3789 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end
| |
| 3790 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,0,0),i) | |
| 3791 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),i) | |
| 3792 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0)*CFrame.Angles(0,0,0),i) | |
| 3793 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0), i) | |
| 3794 | wait(0.01) | |
| 3795 | end | |
| 3796 | weld:Destroy() | |
| 3797 | weld2:Destroy() | |
| 3798 | weld3:Destroy() | |
| 3799 | torsojoint:Clone().Parent = humanroot | |
| 3800 | rightshoulderz:Clone().Parent = me.Torso | |
| 3801 | leftshoulderz:Clone().Parent = me.Torso | |
| 3802 | canClick = true | |
| 3803 | hit = false | |
| 3804 | acting = false | |
| 3805 | end | |
| 3806 | end) | |
| 3807 | doit() | |
| 3808 | end | |
| 3809 | ||
| 3810 | function stab() | |
| 3811 | local doit = coroutine.wrap(function() | |
| 3812 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') and me:FindFirstChild('HumanoidRootPart') and me:FindFirstChild('Left Arm') then
| |
| 3813 | acting = true | |
| 3814 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed + 3
| |
| 3815 | local arm = me["Right Arm"] | |
| 3816 | local tors = me.Torso | |
| 3817 | local arm2 = me["Left Arm"] | |
| 3818 | local humanroot = me.HumanoidRootPart | |
| 3819 | local weld = Instance.new('Weld',tors)
| |
| 3820 | weld.Part0 = tors | |
| 3821 | weld.Part1 = humanroot | |
| 3822 | weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0, 0, 0) | |
| 3823 | local weld2 = Instance.new('Weld',arm)
| |
| 3824 | weld2.Part0 = arm | |
| 3825 | weld2.Part1 = tors | |
| 3826 | weld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
| 3827 | local weld3 = Instance.new('Weld',arm2)
| |
| 3828 | weld3.Part0 = arm2 | |
| 3829 | weld3.Part1 = tors | |
| 3830 | weld3.C0 = CFrame.new(1.5,0,-0.3) * CFrame.Angles(0.3,0.1,0) | |
| 3831 | ||
| 3832 | for i = 0,1,0.1 do | |
| 3833 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end
| |
| 3834 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,0.3,0),i) | |
| 3835 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.2,1.3,0.4)*CFrame.Angles(0.5,0,-1.2),i) | |
| 3836 | wait(0.01) | |
| 3837 | end | |
| 3838 | wait(0.001) | |
| 3839 | trail.Enabled = true | |
| 3840 | stabbing = true | |
| 3841 | audio2.SoundId = 'rbxassetid://608537390' | |
| 3842 | audio2:Play() | |
| 3843 | for i = 0,1,0.25 do | |
| 3844 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end
| |
| 3845 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,-0.3,0),i) | |
| 3846 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.6,0.8,0.5)*CFrame.Angles(-0.5,0,-0.5),i) | |
| 3847 | wait(0.01) | |
| 3848 | end | |
| 3849 | trail.Enabled = false | |
| 3850 | wait(0.1) | |
| 3851 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed - 3
| |
| 3852 | for i = 0,1,0.25 do | |
| 3853 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end
| |
| 3854 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,0.3,0),i) | |
| 3855 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.6,-0.3)*CFrame.Angles(0.5,0,-0.5),i) | |
| 3856 | wait(0.01) | |
| 3857 | end | |
| 3858 | stabbing = false | |
| 3859 | wait(0.001) | |
| 3860 | for i = 0,1,0.05 do | |
| 3861 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end
| |
| 3862 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,0,0),i) | |
| 3863 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),i) | |
| 3864 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0)*CFrame.Angles(0,0,0),i) | |
| 3865 | wait(0.01) | |
| 3866 | end | |
| 3867 | weld:Destroy() | |
| 3868 | weld2:Destroy() | |
| 3869 | weld3:Destroy() | |
| 3870 | torsojoint:Clone().Parent = humanroot | |
| 3871 | rightshoulderz:Clone().Parent = me.Torso | |
| 3872 | leftshoulderz:Clone().Parent = me.Torso | |
| 3873 | canClick = true | |
| 3874 | hit = false | |
| 3875 | acting = false | |
| 3876 | end | |
| 3877 | end) | |
| 3878 | doit() | |
| 3879 | end | |
| 3880 | function hardrelease() | |
| 3881 | rightshoulderz:Clone().Parent = me.Torso | |
| 3882 | leftshoulderz:Clone().Parent = me.Torso | |
| 3883 | if me:FindFirstChild('Right Arm') then
| |
| 3884 | for i,v in pairs(me["Right Arm"]:GetChildren()) do | |
| 3885 | if v:IsA('Weld') then
| |
| 3886 | v:Destroy() | |
| 3887 | end | |
| 3888 | end | |
| 3889 | end | |
| 3890 | if me:FindFirstChild('Left Arm') then
| |
| 3891 | for i,v in pairs(me["Left Arm"]:GetChildren()) do | |
| 3892 | if v:IsA('Weld') then
| |
| 3893 | v:Destroy() | |
| 3894 | end | |
| 3895 | end | |
| 3896 | end | |
| 3897 | acting = false | |
| 3898 | canClick = true | |
| 3899 | doing = false | |
| 3900 | grabbed = nil | |
| 3901 | end | |
| 3902 | function unequip() | |
| 3903 | local doit = coroutine.wrap(function() | |
| 3904 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') then
| |
| 3905 | acting = true | |
| 3906 | local arm = me["Right Arm"] | |
| 3907 | local arm2 = me["Left Arm"] | |
| 3908 | local tors = me.Torso | |
| 3909 | local weld = Instance.new('Weld',arm)
| |
| 3910 | weld.Part0 = arm | |
| 3911 | weld.Part1 = tors | |
| 3912 | weld.C0 = CFrame.new(-1.5,0,0) | |
| 3913 | local weld2 = Instance.new("Weld", arm2)
| |
| 3914 | weld2.Part0 = arm2 | |
| 3915 | weld2.Part1 = tors | |
| 3916 | weld2.C0 = CFrame.new(1.5, 0, 0) | |
| 3917 | wait(0.001) | |
| 3918 | trail.Enabled = true | |
| 3919 | for i = 0,1,0.1 do | |
| 3920 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end
| |
| 3921 | weld.C0 = weld.C0:lerp(CFrame.new(-0.2,0.2,-0.5)*CFrame.Angles(0,-3.1,0.9),i) | |
| 3922 | weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0.6, 0) * CFrame.Angles(0,0,0.5),i) | |
| 3923 | wait(0.001) | |
| 3924 | end | |
| 3925 | trail.Enabled = false | |
| 3926 | wait(0.25) | |
| 3927 | for i = 0,1,0.1 do | |
| 3928 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end
| |
| 3929 | weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 3930 | weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0, 0), i) | |
| 3931 | wait(0.01) | |
| 3932 | end | |
| 3933 | weld:Destroy() | |
| 3934 | weld2:Remove() | |
| 3935 | if tors ~= nil then | |
| 3936 | rightshoulderz:Clone().Parent = me.Torso | |
| 3937 | leftshoulderz:Clone().Parent = me.Torso | |
| 3938 | end | |
| 3939 | acting = false | |
| 3940 | end | |
| 3941 | end) | |
| 3942 | doit() | |
| 3943 | end | |
| 3944 | ||
| 3945 | mouse.KeyDown:connect(function(key) | |
| 3946 | if usable == true then | |
| 3947 | if key == "z" then | |
| 3948 | if active == false and acting == false then | |
| 3949 | active = true | |
| 3950 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3951 | notify("KNIFE EQUIPPED",false)
| |
| 3952 | audio:Stop() | |
| 3953 | audio.SoundId = 'rbxassetid://608618332' | |
| 3954 | equip() | |
| 3955 | wait(0.6) | |
| 3956 | audio:Play() | |
| 3957 | knifeweld.Part0 = me["Right Arm"] | |
| 3958 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0) | |
| 3959 | elseif acting == false then | |
| 3960 | active = false | |
| 3961 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3962 | audio:Stop() | |
| 3963 | audio.SoundId = 'rbxassetid://608538233' | |
| 3964 | unequip() | |
| 3965 | notify("KNIFE UNEQUIPPED",false)
| |
| 3966 | wait(0.3) | |
| 3967 | audio:Play() | |
| 3968 | knifeweld.Part0 = me.Torso | |
| 3969 | knifeweld.C1 = CFrame.Angles(0,math.rad(90),0) * CFrame.new(1, 0.8, 0.55) | |
| 3970 | canClick = true | |
| 3971 | end | |
| 3972 | elseif key == "f" then | |
| 3973 | if mode == 'kill' or active == false then return end | |
| 3974 | mode = "kill" | |
| 3975 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3976 | notify("MODE || KILL || [F]",false)
| |
| 3977 | elseif key == "e" then | |
| 3978 | if mode == 'throw' or active == false then return end | |
| 3979 | mode = "throw" | |
| 3980 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3981 | notify("MODE || PUSH || [E]",false)
| |
| 3982 | elseif key == "q" then | |
| 3983 | if mode == 'release' or active == false then return end | |
| 3984 | mode = "release" | |
| 3985 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3986 | notify("MODE || RELEASE || [Q]",false)
| |
| 3987 | elseif key == "x" then | |
| 3988 | if mode == 'stab' or active == false or acting == true then return end | |
| 3989 | mode = "stab" | |
| 3990 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3991 | notify("MODE || STAB || [X]",false)
| |
| 3992 | elseif key == "c" then | |
| 3993 | if mode == 'fling' or active == false or acting == true then return end | |
| 3994 | mode = "fling" | |
| 3995 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3996 | notify("MODE || THROW || [C]",false)
| |
| 3997 | elseif key == "b" then | |
| 3998 | if mode == 'instasplode' or active == false or acting == true then return end | |
| 3999 | mode = "instasplode" | |
| 4000 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 4001 | notify("MODE || MOLOTOV || [B]",false)
| |
| 4002 | elseif key == "r" then | |
| 4003 | if mode == 'paralyze' or active == false then return end | |
| 4004 | mode = "paralyze" | |
| 4005 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 4006 | notify("MODE || PARALYZE || [R]",false)
| |
| 4007 | elseif key == "v" then | |
| 4008 | if mode == 'explode' or active == false or acting == true then return end | |
| 4009 | mode = "explode" | |
| 4010 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 4011 | notify("MODE || EXPLODE || [V]",false)
| |
| 4012 | elseif key == "k" then | |
| 4013 | if mode == 'suicide' or active == false or acting == true then return end | |
| 4014 | mode = "suicide" | |
| 4015 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 4016 | notify("MODE || SUICIDE || [K]",false)
| |
| 4017 | elseif key == "h" then | |
| 4018 | if mode == 'firework' or active == false or acting == true then return end | |
| 4019 | mode = "firework" | |
| 4020 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 4021 | notify("MODE || FIREWORK || [H]",false)
| |
| 4022 | elseif key == "g" then | |
| 4023 | if mode == 'finish' or active == false then return end | |
| 4024 | mode = "finish" | |
| 4025 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 4026 | local welp = "ON" | |
| 4027 | if finishnum == 1 then | |
| 4028 | welp = "OFF" | |
| 4029 | end | |
| 4030 | notify("MODE || FINISH || [G] || "..welp,false)
| |
| 4031 | elseif key == "n" then | |
| 4032 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 4033 | if zombiemode == false then | |
| 4034 | notify("ZOMBIE MODE ON || [N]",false)
| |
| 4035 | zombiemode = true | |
| 4036 | else | |
| 4037 | notify("ZOMBIE MODE OFF || [N]",false)
| |
| 4038 | zombiemode = false | |
| 4039 | end | |
| 4040 | elseif key == "m" then | |
| 4041 | if finishnum == 1 then | |
| 4042 | finishnum = 15 | |
| 4043 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 4044 | notify("PSYCHOPATH MODE ON || [M]",false)
| |
| 4045 | if cancolorfilter then | |
| 4046 | local Sp00kyGui = Instance.new("ScreenGui")
| |
| 4047 | local ImageLabel = Instance.new("ImageLabel")
| |
| 4048 | ||
| 4049 | -- Properties | |
| 4050 | ||
| 4051 | Sp00kyGui.Parent = playergui | |
| 4052 | Sp00kyGui.Name = "REEEEEEEE" | |
| 4053 | ||
| 4054 | ImageLabel.Parent = Sp00kyGui | |
| 4055 | ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 4056 | ImageLabel.BackgroundTransparency = 1 | |
| 4057 | ImageLabel.Size = UDim2.new(1, 0, 1, 0) | |
| 4058 | ImageLabel.Image = "rbxassetid://74443700" | |
| 4059 | ImageLabel.ImageColor3 = Color3.new(1, 0, 0) | |
| 4060 | end | |
| 4061 | if canbackgroundmusic == true then | |
| 4062 | local sound = Instance.new('Sound',playergui)
| |
| 4063 | sound.Name = 'PSYCHOPAAAATH' | |
| 4064 | sound.SoundId = 'rbxassetid://220875210' | |
| 4065 | sound.Looped = true | |
| 4066 | sound.Volume = 0.5 | |
| 4067 | sound:Play() | |
| 4068 | end | |
| 4069 | else | |
| 4070 | finishnum = 1 | |
| 4071 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 4072 | notify("PSYCHOPATH MODE OFF || [M]",false)
| |
| 4073 | for i,v in pairs(playergui:GetChildren()) do | |
| 4074 | if v.Name == "REEEEEEEE" then | |
| 4075 | v:Destroy() | |
| 4076 | end | |
| 4077 | end | |
| 4078 | local thisniggarighthere = playergui:FindFirstChild('PSYCHOPAAAATH')
| |
| 4079 | if thisniggarighthere then thisniggarighthere:Destroy() end | |
| 4080 | end | |
| 4081 | end | |
| 4082 | end | |
| 4083 | end) | |
| 4084 | ||
| 4085 | mouse.Button1Down:connect(function() | |
| 4086 | if active == false or usable == false then return end | |
| 4087 | if canClick == true and acting == false then | |
| 4088 | if mode == "stab" and finishnum == 1 then | |
| 4089 | canClick = false | |
| 4090 | stab() | |
| 4091 | elseif mode == "stab" and finishnum == 15 then | |
| 4092 | canClick = false | |
| 4093 | stabwithpassion() | |
| 4094 | elseif mode == "fling" then | |
| 4095 | canClick = false | |
| 4096 | fling() | |
| 4097 | elseif mode == "explode" then | |
| 4098 | canClick = false | |
| 4099 | explode() | |
| 4100 | elseif mode == "instasplode" then | |
| 4101 | canClick = false | |
| 4102 | instasplode() | |
| 4103 | elseif mode == "finish" then | |
| 4104 | canClick = false | |
| 4105 | finish() | |
| 4106 | elseif mode == "suicide" then | |
| 4107 | canClick = false | |
| 4108 | kysnigga() | |
| 4109 | elseif mode == "firework" then | |
| 4110 | canClick = false | |
| 4111 | fireworkit() | |
| 4112 | else | |
| 4113 | canClick = false | |
| 4114 | grab() | |
| 4115 | end | |
| 4116 | else | |
| 4117 | if grabbed ~= nil and doing == false then | |
| 4118 | if mode == "release" then | |
| 4119 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 4120 | release() | |
| 4121 | else | |
| 4122 | hardrelease() | |
| 4123 | end | |
| 4124 | elseif mode == "kill" then | |
| 4125 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 4126 | kill() | |
| 4127 | else | |
| 4128 | hardrelease() | |
| 4129 | end | |
| 4130 | elseif mode == "paralyze" then | |
| 4131 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 4132 | paralyze() | |
| 4133 | else | |
| 4134 | hardrelease() | |
| 4135 | end | |
| 4136 | elseif mode == "throw" then | |
| 4137 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 4138 | throw() | |
| 4139 | else | |
| 4140 | hardrelease() | |
| 4141 | end | |
| 4142 | elseif mode == "explode" then | |
| 4143 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 4144 | throw() | |
| 4145 | else | |
| 4146 | hardrelease() | |
| 4147 | end | |
| 4148 | end | |
| 4149 | end | |
| 4150 | end | |
| 4151 | end) | |
| 4152 | ||
| 4153 | knife.Touched:connect(function(hitz) | |
| 4154 | if hitz.Parent and hitz.Parent:FindFirstChildOfClass("Humanoid") and hitz.Parent:FindFirstChild('Torso') and acting == true then
| |
| 4155 | if mode == "stab" and stabbing == true and hit == false then | |
| 4156 | hit = true | |
| 4157 | tone = math.random(1, 3) | |
| 4158 | audio:Stop() | |
| 4159 | if tone == 1 then audio.SoundId = "rbxassetid://220833967" end | |
| 4160 | if tone == 2 then audio.SoundId = "rbxassetid://220833976" end | |
| 4161 | if tone == 3 then audio.SoundId = "rbxassetid://220834000" end | |
| 4162 | audio.PlaybackSpeed = 1 | |
| 4163 | audio:Play() | |
| 4164 | killz(hitz.Parent,'Left Leg') | |
| 4165 | killz(hitz.Parent,'Left Arm') | |
| 4166 | killz(hitz.Parent,'Right Leg') | |
| 4167 | killz(hitz.Parent,'Right Arm') | |
| 4168 | elseif mode == "finish" and finishing == true then | |
| 4169 | print('PSYCHOPATH MODE REEEEEEEEEEEEEEEE')
| |
| 4170 | tone = math.random(1, 3) | |
| 4171 | audio:Stop() | |
| 4172 | if tone == 1 then audio.SoundId = "rbxassetid://220833967" end | |
| 4173 | if tone == 2 then audio.SoundId = "rbxassetid://220833976" end | |
| 4174 | if tone == 3 then audio.SoundId = "rbxassetid://220834000" end | |
| 4175 | audio.PlaybackSpeed = 1 | |
| 4176 | audio:Play() | |
| 4177 | if hit == false then | |
| 4178 | hitz.Parent:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 4179 | wait() | |
| 4180 | killz(hitz.Parent,'Head',nil,false,true) | |
| 4181 | end | |
| 4182 | hit = true | |
| 4183 | elseif grabbed == nil and grabbing == true and hit == false then | |
| 4184 | if hitz.Parent:FindFirstChildOfClass("Humanoid").Health > 0 and hitz.Parent:FindFirstChild('Torso') and hitz.Parent.Torso:FindFirstChild('Neck') then
| |
| 4185 | grabbed = hitz.Parent | |
| 4186 | local weldz = Instance.new('Weld',point)
| |
| 4187 | weldz.Name = "Holder" | |
| 4188 | weldz.Part0 = point | |
| 4189 | weldz.Part1 = hitz.Parent.Torso | |
| 4190 | weldz.C0 = CFrame.new(0,0,-1.2) | |
| 4191 | end | |
| 4192 | end | |
| 4193 | end | |
| 4194 | end) | |
| 4195 | ||
| 4196 | player.CharacterAdded:connect(function() | |
| 4197 | usable = false | |
| 4198 | for i,v in pairs(playergui:GetChildren()) do | |
| 4199 | if v.Name == "REEEEEEEE" or v.Name == 'PSYCHOPAAAATH' then | |
| 4200 | v:Destroy() | |
| 4201 | end | |
| 4202 | end | |
| 4203 | end) | |
| 4204 | while usable do | |
| 4205 | local coru = coroutine.wrap(function() | |
| 4206 | for i,v in pairs(knifeparts) do | |
| 4207 | local function try() | |
| 4208 | if v[1].Parent ~= v[2] then | |
| 4209 | v[1].Parent = v[2] | |
| 4210 | end | |
| 4211 | end | |
| 4212 | pcall(try) | |
| 4213 | end | |
| 4214 | if grabbed ~= nil then | |
| 4215 | if grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 4216 | for i,v in pairs(grabbed:GetChildren()) do | |
| 4217 | if v:IsA('Tool') then
| |
| 4218 | local model = Instance.new('Model',workspace)
| |
| 4219 | v.Parent = model | |
| 4220 | model:TranslateBy(Vector3.new(3,0,0)) | |
| 4221 | end | |
| 4222 | end | |
| 4223 | grabbed:FindFirstChildOfClass('Humanoid').Name = "Hoomanoid"
| |
| 4224 | grabbed:FindFirstChildOfClass('Humanoid').JumpPower = 0
| |
| 4225 | grabbed:FindFirstChildOfClass('Humanoid').WalkSpeed = 0
| |
| 4226 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = true
| |
| 4227 | grabweld = grabbed.Torso:FindFirstChild("TargetWeld")
| |
| 4228 | if grabweld ~= nil then return end | |
| 4229 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = true
| |
| 4230 | if grabbed.Torso:FindFirstChild('Left Shoulder') then
| |
| 4231 | leftshoulder = grabbed.Torso["Left Shoulder"]:Clone() | |
| 4232 | end | |
| 4233 | if grabbed.Torso:FindFirstChild('Right Shoulder') then
| |
| 4234 | rightshoulder = grabbed.Torso["Right Shoulder"]:Clone() | |
| 4235 | end | |
| 4236 | headweld = grabbed.Torso["Neck"]:Clone() | |
| 4237 | local targetweld = Instance.new('Weld',grabbed.Torso)
| |
| 4238 | targetweld.Part0 = grabbed.Torso | |
| 4239 | targetweld.Part1 = grabbed.Head | |
| 4240 | targetweld.Name = "TargetWeld" | |
| 4241 | targetweld.C0 = CFrame.new(0,1.5,0) * CFrame.Angles(0, 0, 0) | |
| 4242 | if grabbed:FindFirstChild('Left Arm') then
| |
| 4243 | local targetweld2 = Instance.new('Weld',grabbed["Left Arm"])
| |
| 4244 | targetweld2.Part0 = grabbed.Torso | |
| 4245 | targetweld2.Part1 = grabbed["Left Arm"] | |
| 4246 | targetweld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
| 4247 | end | |
| 4248 | ||
| 4249 | for i = 0,1,0.1 do | |
| 4250 | if me:FindFirstChild("Left Arm") == nil or me:FindFirstChild("Torso") == nil or targetweld == nil then return end
| |
| 4251 | targetweld.C0 = targetweld.C0:lerp(CFrame.new(0, 1.5, 0)*CFrame.Angles(0.25, 0, 0), i) | |
| 4252 | if targetweld2 then | |
| 4253 | targetweld2.C0 = targetweld2.C0:lerp(CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(0, 0, -0.55), i) | |
| 4254 | end | |
| 4255 | wait(0.001) | |
| 4256 | end | |
| 4257 | end | |
| 4258 | end | |
| 4259 | end) | |
| 4260 | coru() | |
| 4261 | wait() | |
| 4262 | end | |
| 4263 | ||
| 4264 | end | |
| 4265 | local coru=coroutine.wrap(function() | |
| 4266 | nub() | |
| 4267 | end) | |
| 4268 | coru() | |
| 4269 | ||
| 4270 | player.CharacterAppearanceLoaded:connect(function() | |
| 4271 | local coru =coroutine.wrap(function() | |
| 4272 | nub() | |
| 4273 | end) | |
| 4274 | coru() | |
| 4275 | end) | |
| 4276 | ||
| 4277 | while true do | |
| 4278 | local coru=coroutine.wrap(function() | |
| 4279 | if grabbed then | |
| 4280 | v:FindFirstChildOfClass('Humanoid').Jump = false
| |
| 4281 | v:FindFirstChildOfClass('Humanoid').Sit = false
| |
| 4282 | v:FindFirstChildOfClass('Humanoid').JumpPower = 0
| |
| 4283 | v:FindFirstChildOfClass('Humanoid').PlatformStand = true
| |
| 4284 | v:FindFirstChildOfClass('Humanoid').Name = "No escape."
| |
| 4285 | end | |
| 4286 | for i,v in pairs(rekt) do | |
| 4287 | if v and v:FindFirstChildOfClass('Humanoid') then
| |
| 4288 | for a,c in pairs(v:GetChildren()) do | |
| 4289 | if c:IsA('Tool') then
| |
| 4290 | local model = Instance.new('Model',workspace)
| |
| 4291 | c.Parent = model | |
| 4292 | model:TranslateBy(Vector3.new(3,0,0)) | |
| 4293 | end | |
| 4294 | end | |
| 4295 | v:FindFirstChildOfClass('Humanoid').Jump = false
| |
| 4296 | v:FindFirstChildOfClass('Humanoid').Sit = false
| |
| 4297 | v:FindFirstChildOfClass('Humanoid').JumpPower = 0
| |
| 4298 | v:FindFirstChildOfClass('Humanoid').PlatformStand = true
| |
| 4299 | v:FindFirstChildOfClass('Humanoid').Name = "No escape."
| |
| 4300 | local thing = getplr(v) | |
| 4301 | if thing then | |
| 4302 | thing.CameraMinZoomDistance = 3 | |
| 4303 | end | |
| 4304 | else | |
| 4305 | local thing = getplr(v) | |
| 4306 | if thing then | |
| 4307 | thing.CameraMinZoomDistance = 0.5 | |
| 4308 | end | |
| 4309 | table.remove(rekt,i) | |
| 4310 | end | |
| 4311 | end | |
| 4312 | end) | |
| 4313 | coru() | |
| 4314 | local coru2 = coroutine.wrap(function() | |
| 4315 | if curpart then | |
| 4316 | curpoint = curpart.CFrame.p | |
| 4317 | end | |
| 4318 | if lastgui then | |
| 4319 | lastgui:Destroy() | |
| 4320 | lastgui = nil | |
| 4321 | end | |
| 4322 | if curpoint then | |
| 4323 | lastgui = Instance.new('BillboardGui',player.PlayerGui)
| |
| 4324 | lastgui.AlwaysOnTop = true | |
| 4325 | lastgui.MaxDistance = 0 | |
| 4326 | lastgui.Size = UDim2.new(5,0,5,0) | |
| 4327 | if curpart == nil then | |
| 4328 | lastgui.Adornee = workspace | |
| 4329 | lastgui.StudsOffsetWorldSpace = curpoint | |
| 4330 | else | |
| 4331 | lastgui.Adornee = curpart | |
| 4332 | end | |
| 4333 | local cross = Instance.new('ImageLabel',lastgui)
| |
| 4334 | cross.BackgroundTransparency = 1 | |
| 4335 | cross.Size = UDim2.new(1,0,1,0) | |
| 4336 | cross.Image = 'rbxassetid://316279304' | |
| 4337 | for i,v in pairs(zombies) do | |
| 4338 | if v:FindFirstChildOfClass('Humanoid') then
| |
| 4339 | v:FindFirstChildOfClass('Humanoid').WalkToPoint = curpoint
| |
| 4340 | end | |
| 4341 | end | |
| 4342 | else | |
| 4343 | for i,v in pairs(zombies) do | |
| 4344 | if v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Head') then
| |
| 4345 | v:FindFirstChildOfClass('Humanoid').WalkToPoint = v.Head.Position
| |
| 4346 | end | |
| 4347 | end | |
| 4348 | end | |
| 4349 | end) | |
| 4350 | coru2() | |
| 4351 | wait() | |
| 4352 | end | |
| 4353 | ||
| 4354 | script.Name = "Soul Pistol" | |
| 4355 | --Original script created by shackluster | |
| 4356 | --Edit by Biologically_Noob | |
| 4357 | script:ClearAllChildren() | |
| 4358 | wait(0.2) | |
| 4359 | ||
| 4360 | --|SIMPLE KICK SCRIPT FOR EMERGENCY PURPOSES AND STUFF|-- | |
| 4361 | --|ROBLOX SCRIPT BUILDER LOCAL SCRIPT|-- | |
| 4362 | - | player=game.Players.owner |
| 4362 | + | player=owner |
| 4363 | player.Chatted:connect(function(m) | |
| 4364 | if string.sub(m,1,6)=="kick " then | |
| 4365 | local victim | |
| 4366 | for i,v in pairs(game.Players:GetPlayers()) do | |
| 4367 | if string.find(m,v.Name) then | |
| 4368 | v:Kick() | |
| 4369 | end | |
| 4370 | end | |
| 4371 | end | |
| 4372 | end) | |
| 4373 | Player = game:GetService("Players").owner
| |
| 4374 | PlayerGui = Player.PlayerGui | |
| 4375 | Cam = workspace.CurrentCamera | |
| 4376 | Backpack = Player.Backpack | |
| 4377 | Character = Player.Character | |
| 4378 | Humanoid = Character.Humanoid | |
| 4379 | RootPart = Character["HumanoidRootPart"] | |
| 4380 | Torso = Character["Torso"] | |
| 4381 | Head = Character["Head"] | |
| 4382 | RightArm = Character["Right Arm"] | |
| 4383 | LeftArm = Character["Left Arm"] | |
| 4384 | RightLeg = Character["Right Leg"] | |
| 4385 | LeftLeg = Character["Left Leg"] | |
| 4386 | RootJoint = RootPart["RootJoint"] | |
| 4387 | Neck = Torso["Neck"] | |
| 4388 | RightShoulder = Torso["Right Shoulder"] | |
| 4389 | LeftShoulder = Torso["Left Shoulder"] | |
| 4390 | RightHip = Torso["Right Hip"] | |
| 4391 | LeftHip = Torso["Left Hip"] | |
| 4392 | local TIME = 0 | |
| 4393 | local sick = Instance.new("Sound",Torso)
| |
| 4394 | ||
| 4395 | IT = Instance.new | |
| 4396 | CF = CFrame.new | |
| 4397 | VT = Vector3.new | |
| 4398 | RAD = math.rad | |
| 4399 | C3 = Color3.new | |
| 4400 | UD2 = UDim2.new | |
| 4401 | BRICKC = BrickColor.new | |
| 4402 | ANGLES = CFrame.Angles | |
| 4403 | EULER = CFrame.fromEulerAnglesXYZ | |
| 4404 | COS = math.cos | |
| 4405 | ACOS = math.acos | |
| 4406 | SIN = math.sin | |
| 4407 | ASIN = math.asin | |
| 4408 | ABS = math.abs | |
| 4409 | MRANDOM = math.random | |
| 4410 | FLOOR = math.floor | |
| 4411 | ||
| 4412 | --//=================================\\ | |
| 4413 | --|| USEFUL VALUES | |
| 4414 | --\\=================================// | |
| 4415 | ||
| 4416 | Animation_Speed = 3 | |
| 4417 | local FORCERESET = false | |
| 4418 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 4419 | local Speed = 16 | |
| 4420 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 4421 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 4422 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 4423 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 4424 | local DAMAGEMULTIPLIER = 1 | |
| 4425 | local ANIM = "Idle" | |
| 4426 | local ATTACK = false | |
| 4427 | local EQUIPPED = false | |
| 4428 | local HOLD = false | |
| 4429 | local COMBO = 1 | |
| 4430 | local Rooted = false | |
| 4431 | local SINE = 0 | |
| 4432 | local KEYHOLD = false | |
| 4433 | local CHANGE = 2 / Animation_Speed | |
| 4434 | local WALKINGANIM = false | |
| 4435 | local VALUE1 = false | |
| 4436 | local VALUE2 = false | |
| 4437 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 4438 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 4439 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 4440 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 4441 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 4442 | WEAPONGUI.Name = "BanishV3Gui" | |
| 4443 | local Weapon = IT("Model")
| |
| 4444 | Weapon.Name = "Adds" | |
| 4445 | local Effects = IT("Folder", Weapon)
| |
| 4446 | Effects.Name = "Effects" | |
| 4447 | local ANIMATOR = Humanoid.Animator | |
| 4448 | local ANIMATE = Character:FindFirstChild("Animate")
| |
| 4449 | local UNANCHOR = true | |
| 4450 | local TOBANISH = {}
| |
| 4451 | script.Parent = PlayerGui | |
| 4452 | ||
| 4453 | --//=================================\\ | |
| 4454 | --\\=================================// | |
| 4455 | ||
| 4456 | ||
| 4457 | --//=================================\\ | |
| 4458 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 4459 | --\\=================================// | |
| 4460 | ||
| 4461 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 4462 | ArtificialHB.Name = "ArtificialHB" | |
| 4463 | ||
| 4464 | script:WaitForChild("ArtificialHB")
| |
| 4465 | ||
| 4466 | frame = Frame_Speed | |
| 4467 | tf = 0 | |
| 4468 | allowframeloss = false | |
| 4469 | tossremainder = false | |
| 4470 | lastframe = tick() | |
| 4471 | script.ArtificialHB:Fire() | |
| 4472 | ||
| 4473 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 4474 | tf = tf + s | |
| 4475 | if tf >= frame then | |
| 4476 | if allowframeloss then | |
| 4477 | script.ArtificialHB:Fire() | |
| 4478 | lastframe = tick() | |
| 4479 | else | |
| 4480 | for i = 1, math.floor(tf / frame) do | |
| 4481 | script.ArtificialHB:Fire() | |
| 4482 | end | |
| 4483 | lastframe = tick() | |
| 4484 | end | |
| 4485 | if tossremainder then | |
| 4486 | tf = 0 | |
| 4487 | else | |
| 4488 | tf = tf - frame * math.floor(tf / frame) | |
| 4489 | end | |
| 4490 | end | |
| 4491 | end) | |
| 4492 | ||
| 4493 | --//=================================\\ | |
| 4494 | --\\=================================// | |
| 4495 | ||
| 4496 | --//=================================\\ | |
| 4497 | --|| SOME FUNCTIONS | |
| 4498 | --\\=================================// | |
| 4499 | ||
| 4500 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 4501 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 4502 | end | |
| 4503 | ||
| 4504 | function PositiveAngle(NUMBER) | |
| 4505 | if NUMBER >= 0 then | |
| 4506 | NUMBER = 0 | |
| 4507 | end | |
| 4508 | return NUMBER | |
| 4509 | end | |
| 4510 | ||
| 4511 | function NegativeAngle(NUMBER) | |
| 4512 | if NUMBER <= 0 then | |
| 4513 | NUMBER = 0 | |
| 4514 | end | |
| 4515 | return NUMBER | |
| 4516 | end | |
| 4517 | ||
| 4518 | function Swait(NUMBER) | |
| 4519 | if NUMBER == 0 or NUMBER == nil then | |
| 4520 | ArtificialHB.Event:wait() | |
| 4521 | else | |
| 4522 | for i = 1, NUMBER do | |
| 4523 | ArtificialHB.Event:wait() | |
| 4524 | end | |
| 4525 | end | |
| 4526 | end | |
| 4527 | ||
| 4528 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 4529 | local NEWMESH = IT(MESH) | |
| 4530 | if MESH == "SpecialMesh" then | |
| 4531 | NEWMESH.MeshType = MESHTYPE | |
| 4532 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 4533 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 4534 | end | |
| 4535 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 4536 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 4537 | end | |
| 4538 | end | |
| 4539 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 4540 | NEWMESH.Scale = SCALE | |
| 4541 | NEWMESH.Parent = PARENT | |
| 4542 | return NEWMESH | |
| 4543 | end | |
| 4544 | ||
| 4545 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 4546 | local NEWPART = IT("Part")
| |
| 4547 | NEWPART.formFactor = FORMFACTOR | |
| 4548 | NEWPART.Reflectance = REFLECTANCE | |
| 4549 | NEWPART.Transparency = TRANSPARENCY | |
| 4550 | NEWPART.CanCollide = false | |
| 4551 | NEWPART.Locked = true | |
| 4552 | NEWPART.Anchored = true | |
| 4553 | if ANCHOR == false then | |
| 4554 | NEWPART.Anchored = false | |
| 4555 | end | |
| 4556 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 4557 | NEWPART.Name = NAME | |
| 4558 | NEWPART.Size = SIZE | |
| 4559 | NEWPART.Position = Torso.Position | |
| 4560 | NEWPART.Material = MATERIAL | |
| 4561 | NEWPART:BreakJoints() | |
| 4562 | NEWPART.Parent = PARENT | |
| 4563 | return NEWPART | |
| 4564 | end | |
| 4565 | ||
| 4566 | local function weldBetween(a, b) | |
| 4567 | local weldd = Instance.new("ManualWeld")
| |
| 4568 | weldd.Part0 = a | |
| 4569 | weldd.Part1 = b | |
| 4570 | weldd.C0 = CFrame.new() | |
| 4571 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 4572 | weldd.Parent = a | |
| 4573 | return weldd | |
| 4574 | end | |
| 4575 | ||
| 4576 | ||
| 4577 | function QuaternionFromCFrame(cf) | |
| 4578 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 4579 | local trace = m00 + m11 + m22 | |
| 4580 | if trace > 0 then | |
| 4581 | local s = math.sqrt(1 + trace) | |
| 4582 | local recip = 0.5 / s | |
| 4583 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 4584 | else | |
| 4585 | local i = 0 | |
| 4586 | if m11 > m00 then | |
| 4587 | i = 1 | |
| 4588 | end | |
| 4589 | if m22 > (i == 0 and m00 or m11) then | |
| 4590 | i = 2 | |
| 4591 | end | |
| 4592 | if i == 0 then | |
| 4593 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 4594 | local recip = 0.5 / s | |
| 4595 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 4596 | elseif i == 1 then | |
| 4597 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 4598 | local recip = 0.5 / s | |
| 4599 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 4600 | elseif i == 2 then | |
| 4601 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 4602 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 4603 | end | |
| 4604 | end | |
| 4605 | end | |
| 4606 | ||
| 4607 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 4608 | local xs, ys, zs = x + x, y + y, z + z | |
| 4609 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 4610 | local xx = x * xs | |
| 4611 | local xy = x * ys | |
| 4612 | local xz = x * zs | |
| 4613 | local yy = y * ys | |
| 4614 | local yz = y * zs | |
| 4615 | local zz = z * zs | |
| 4616 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
| 4617 | end | |
| 4618 | ||
| 4619 | function QuaternionSlerp(a, b, t) | |
| 4620 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 4621 | local startInterp, finishInterp; | |
| 4622 | if cosTheta >= 0.0001 then | |
| 4623 | if (1 - cosTheta) > 0.0001 then | |
| 4624 | local theta = ACOS(cosTheta) | |
| 4625 | local invSinTheta = 1 / SIN(theta) | |
| 4626 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 4627 | finishInterp = SIN(t * theta) * invSinTheta | |
| 4628 | else | |
| 4629 | startInterp = 1 - t | |
| 4630 | finishInterp = t | |
| 4631 | end | |
| 4632 | else | |
| 4633 | if (1 + cosTheta) > 0.0001 then | |
| 4634 | local theta = ACOS(-cosTheta) | |
| 4635 | local invSinTheta = 1 / SIN(theta) | |
| 4636 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 4637 | finishInterp = SIN(t * theta) * invSinTheta | |
| 4638 | else | |
| 4639 | startInterp = t - 1 | |
| 4640 | finishInterp = t | |
| 4641 | end | |
| 4642 | end | |
| 4643 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
| 4644 | end | |
| 4645 | ||
| 4646 | function Clerp(a, b, t) | |
| 4647 | local qa = {QuaternionFromCFrame(a)}
| |
| 4648 | local qb = {QuaternionFromCFrame(b)}
| |
| 4649 | local ax, ay, az = a.x, a.y, a.z | |
| 4650 | local bx, by, bz = b.x, b.y, b.z | |
| 4651 | local _t = 1 - t | |
| 4652 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 4653 | end | |
| 4654 | ||
| 4655 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 4656 | local frame = IT("Frame")
| |
| 4657 | frame.BackgroundTransparency = TRANSPARENCY | |
| 4658 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 4659 | frame.Position = POSITION | |
| 4660 | frame.Size = SIZE | |
| 4661 | frame.BackgroundColor3 = COLOR | |
| 4662 | frame.BorderColor3 = BORDERCOLOR | |
| 4663 | frame.Name = NAME | |
| 4664 | frame.Parent = PARENT | |
| 4665 | return frame | |
| 4666 | end | |
| 4667 | ||
| 4668 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 4669 | local label = IT("TextLabel")
| |
| 4670 | label.BackgroundTransparency = 1 | |
| 4671 | label.Size = UD2(1, 0, 1, 0) | |
| 4672 | label.Position = UD2(0, 0, 0, 0) | |
| 4673 | label.TextColor3 = TEXTCOLOR | |
| 4674 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 4675 | label.TextTransparency = TRANSPARENCY | |
| 4676 | label.FontSize = TEXTFONTSIZE | |
| 4677 | label.Font = TEXTFONT | |
| 4678 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 4679 | label.TextScaled = false | |
| 4680 | label.Text = TEXT | |
| 4681 | label.Name = NAME | |
| 4682 | label.Parent = PARENT | |
| 4683 | return label | |
| 4684 | end | |
| 4685 | ||
| 4686 | function NoOutlines(PART) | |
| 4687 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 4688 | end | |
| 4689 | ||
| 4690 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 4691 | local NEWWELD = IT(TYPE) | |
| 4692 | NEWWELD.Part0 = PART0 | |
| 4693 | NEWWELD.Part1 = PART1 | |
| 4694 | NEWWELD.C0 = C0 | |
| 4695 | NEWWELD.C1 = C1 | |
| 4696 | NEWWELD.Parent = PARENT | |
| 4697 | return NEWWELD | |
| 4698 | end | |
| 4699 | ||
| 4700 | local S = IT("Sound")
| |
| 4701 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 4702 | local NEWSOUND = nil | |
| 4703 | coroutine.resume(coroutine.create(function() | |
| 4704 | NEWSOUND = S:Clone() | |
| 4705 | NEWSOUND.Parent = PARENT | |
| 4706 | NEWSOUND.Volume = VOLUME | |
| 4707 | NEWSOUND.Pitch = PITCH | |
| 4708 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 4709 | NEWSOUND:play() | |
| 4710 | if DOESLOOP == true then | |
| 4711 | NEWSOUND.Looped = true | |
| 4712 | else | |
| 4713 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
| 4714 | NEWSOUND:remove() | |
| 4715 | end | |
| 4716 | end)) | |
| 4717 | return NEWSOUND | |
| 4718 | end | |
| 4719 | ||
| 4720 | function CFrameFromTopBack(at, top, back) | |
| 4721 | local right = top:Cross(back) | |
| 4722 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 4723 | end | |
| 4724 | ||
| 4725 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 4726 | function WACKYEFFECT(Table) | |
| 4727 | local TYPE = (Table.EffectType or "Sphere") | |
| 4728 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 4729 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 4730 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 4731 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 4732 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 4733 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 4734 | local ROTATION1 = (Table.RotationX or 0) | |
| 4735 | local ROTATION2 = (Table.RotationY or 0) | |
| 4736 | local ROTATION3 = (Table.RotationZ or 0) | |
| 4737 | local MATERIAL = (Table.Material or "Neon") | |
| 4738 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 4739 | local TIME = (Table.Time or 45) | |
| 4740 | local SOUNDID = (Table.SoundID or nil) | |
| 4741 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 4742 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 4743 | coroutine.resume(coroutine.create(function() | |
| 4744 | local PLAYSSOUND = false | |
| 4745 | local SOUND = nil | |
| 4746 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 4747 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 4748 | PLAYSSOUND = true | |
| 4749 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 4750 | end | |
| 4751 | EFFECT.Color = COLOR | |
| 4752 | local MSH = nil | |
| 4753 | if TYPE == "Sphere" then | |
| 4754 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 4755 | elseif TYPE == "Block" then | |
| 4756 | MSH = IT("BlockMesh",EFFECT)
| |
| 4757 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 4758 | elseif TYPE == "Wave" then | |
| 4759 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 4760 | elseif TYPE == "Ring" then | |
| 4761 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 4762 | elseif TYPE == "Slash" then | |
| 4763 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 4764 | elseif TYPE == "Round Slash" then | |
| 4765 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 4766 | elseif TYPE == "Swirl" then | |
| 4767 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 4768 | elseif TYPE == "Skull" then | |
| 4769 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 4770 | elseif TYPE == "Crystal" then | |
| 4771 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 4772 | end | |
| 4773 | if MSH ~= nil then | |
| 4774 | local MOVESPEED = nil | |
| 4775 | if MOVEDIRECTION ~= nil then | |
| 4776 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 4777 | end | |
| 4778 | local GROWTH = SIZE - ENDSIZE | |
| 4779 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 4780 | if TYPE == "Block" then | |
| 4781 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 4782 | else | |
| 4783 | EFFECT.CFrame = CFRAME | |
| 4784 | end | |
| 4785 | for LOOP = 1, TIME+1 do | |
| 4786 | Swait() | |
| 4787 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 4788 | if TYPE == "Wave" then | |
| 4789 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 4790 | end | |
| 4791 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 4792 | if TYPE == "Block" then | |
| 4793 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 4794 | else | |
| 4795 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 4796 | end | |
| 4797 | if MOVEDIRECTION ~= nil then | |
| 4798 | local ORI = EFFECT.Orientation | |
| 4799 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 4800 | EFFECT.Orientation = ORI | |
| 4801 | end | |
| 4802 | end | |
| 4803 | if PLAYSSOUND == false then | |
| 4804 | EFFECT:remove() | |
| 4805 | else | |
| 4806 | SOUND.Stopped:Connect(function() | |
| 4807 | EFFECT:remove() | |
| 4808 | end) | |
| 4809 | end | |
| 4810 | else | |
| 4811 | if PLAYSSOUND == false then | |
| 4812 | EFFECT:remove() | |
| 4813 | else | |
| 4814 | repeat Swait() until SOUND.Playing == false | |
| 4815 | EFFECT:remove() | |
| 4816 | end | |
| 4817 | end | |
| 4818 | end)) | |
| 4819 | end | |
| 4820 | ||
| 4821 | function MakeForm(PART,TYPE) | |
| 4822 | if TYPE == "Cyl" then | |
| 4823 | local MSH = IT("CylinderMesh",PART)
| |
| 4824 | elseif TYPE == "Ball" then | |
| 4825 | local MSH = IT("SpecialMesh",PART)
| |
| 4826 | MSH.MeshType = "Sphere" | |
| 4827 | elseif TYPE == "Wedge" then | |
| 4828 | local MSH = IT("SpecialMesh",PART)
| |
| 4829 | MSH.MeshType = "Wedge" | |
| 4830 | end | |
| 4831 | end | |
| 4832 | ||
| 4833 | function SpawnTrail(FROM,TO,BIG) | |
| 4834 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Cyan", "Trail", VT(0,0,0)) | |
| 4835 | MakeForm(TRAIL,"Cyl") | |
| 4836 | local DIST = (FROM - TO).Magnitude | |
| 4837 | if BIG == true then | |
| 4838 | TRAIL.Size = VT(0.5,DIST,0.5) | |
| 4839 | else | |
| 4840 | TRAIL.Size = VT(0.25,DIST,0.25) | |
| 4841 | end | |
| 4842 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
| 4843 | coroutine.resume(coroutine.create(function() | |
| 4844 | for i = 1, 5 do | |
| 4845 | Swait() | |
| 4846 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
| 4847 | end | |
| 4848 | TRAIL:remove() | |
| 4849 | end)) | |
| 4850 | end | |
| 4851 | ||
| 4852 | Debris = game:GetService("Debris")
| |
| 4853 | ||
| 4854 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 4855 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 4856 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 4857 | end | |
| 4858 | ||
| 4859 | function turnto(position) | |
| 4860 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 4861 | end | |
| 4862 | ||
| 4863 | --//=================================\\ | |
| 4864 | --|| WEAPON CREATION | |
| 4865 | --\\=================================// | |
| 4866 | ||
| 4867 | local Particle = IT("ParticleEmitter",nil)
| |
| 4868 | Particle.Enabled = false | |
| 4869 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
| |
| 4870 | Particle.LightEmission = 0.5 | |
| 4871 | Particle.Rate = 150 | |
| 4872 | Particle.ZOffset = 0.2 | |
| 4873 | Particle.Rotation = NumberRange.new(-180, 180) | |
| 4874 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
| 4875 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
| 4876 | Particle.Color = ColorSequence.new(C3(0,0,255),C3(0,255,255)) | |
| 4877 | local Particle2 = IT("ParticleEmitter",nil)
| |
| 4878 | Particle2.Enabled = false | |
| 4879 | Particle2.Texture = "http://www.roblox.com/asset/?id=1369397597" | |
| 4880 | Particle2.Color = ColorSequence.new(C3(0,0,255),C3(0,0,255)) | |
| 4881 | Particle2.LightEmission = 0 | |
| 4882 | Particle2.RotSpeed = NumberRange.new(0, 180) | |
| 4883 | Particle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
| |
| 4884 | Particle2.LightEmission = 1 | |
| 4885 | Particle2.Rate = 20 | |
| 4886 | Particle2.RotSpeed = NumberRange.new(-20, 20) | |
| 4887 | local Particle3 = IT("ParticleEmitter",nil)
| |
| 4888 | Particle3.Enabled = false | |
| 4889 | Particle3.Texture = "http://www.roblox.com/asset/?id=1546470121" | |
| 4890 | Particle3.Color = ColorSequence.new(C3(0,0,255),C3(0,0,255)) | |
| 4891 | Particle3.LightEmission = 0 | |
| 4892 | Particle3.RotSpeed = NumberRange.new(0, 180) | |
| 4893 | Particle3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.7),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)})
| |
| 4894 | Particle3.LightEmission = 1 | |
| 4895 | Particle3.Rate = 20 | |
| 4896 | Particle3.RotSpeed = NumberRange.new(-20, 20) | |
| 4897 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
| |
| 4898 | function ParticleEmitter(Table) | |
| 4899 | local PRTCL = Particle:Clone() | |
| 4900 | local Speed = Table.Speed or 5 | |
| 4901 | local Drag = Table.Drag or 0 | |
| 4902 | local Size1 = Table.Size1 or 1 | |
| 4903 | local Size2 = Table.Size2 or 5 | |
| 4904 | local Lifetime1 = Table.Lifetime1 or 1 | |
| 4905 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
| 4906 | local Parent = Table.Parent or Torso | |
| 4907 | local Emit = Table.Emit or 100 | |
| 4908 | local Offset = Table.Offset or 360 | |
| 4909 | local Acel = Table.Acel or VT(0,0,0) | |
| 4910 | local Enabled = Table.Enabled or false | |
| 4911 | PRTCL.Parent = Parent | |
| 4912 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
| 4913 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 4914 | PRTCL.Speed = NumberRange.new(Speed) | |
| 4915 | PRTCL.VelocitySpread = Offset | |
| 4916 | PRTCL.Drag = Drag | |
| 4917 | PRTCL.Acceleration = Acel | |
| 4918 | if Enabled == false then | |
| 4919 | PRTCL:Emit(Emit) | |
| 4920 | Debris:AddItem(PRTCL,Lifetime2) | |
| 4921 | else | |
| 4922 | PRTCL.Enabled = true | |
| 4923 | end | |
| 4924 | return PRTCL | |
| 4925 | end | |
| 4926 | function ParticleEmitter2(Table) | |
| 4927 | local PRTCL2 = Particle2:Clone() | |
| 4928 | local LockedToPart = Table.LTP or true | |
| 4929 | local Speed = Table.Speed or 0 | |
| 4930 | local Drag = Table.Drag or 0 | |
| 4931 | local Size1 = Table.Size1 or 1 | |
| 4932 | local Size2 = Table.Size2 or 2 | |
| 4933 | local Lifetime1 = Table.Lifetime1 or 1 | |
| 4934 | local Lifetime2 = Table.Lifetime2 or 1 | |
| 4935 | local Parent = Table.Parent or Torso | |
| 4936 | local Emit = Table.Emit or 100 | |
| 4937 | local Offset = Table.Offset or 360 | |
| 4938 | local Acel = Table.Acel or VT(0,0,0) | |
| 4939 | local Enabled = Table.Enabled or false | |
| 4940 | PRTCL2.Parent = Parent | |
| 4941 | PRTCL2.Size = NumberSequence.new(Size1,Size2) | |
| 4942 | PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 4943 | PRTCL2.Speed = NumberRange.new(Speed) | |
| 4944 | PRTCL2.VelocitySpread = Offset | |
| 4945 | PRTCL2.Drag = Drag | |
| 4946 | PRTCL2.Acceleration = Acel | |
| 4947 | PRTCL2.Parent = Parent | |
| 4948 | PRTCL2.Size = NumberSequence.new(Size1,Size2) | |
| 4949 | PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 4950 | PRTCL2.Speed = NumberRange.new(Speed) | |
| 4951 | PRTCL2.VelocitySpread = Offset | |
| 4952 | PRTCL2.Drag = Drag | |
| 4953 | PRTCL2.Acceleration = Acel | |
| 4954 | PRTCL2.LockedToPart = true | |
| 4955 | if Enabled == false then | |
| 4956 | PRTCL2:Emit(Emit) | |
| 4957 | Debris:AddItem(PRTCL2,Lifetime2) | |
| 4958 | else | |
| 4959 | PRTCL2.Enabled = true | |
| 4960 | end | |
| 4961 | return PRTCL2 | |
| 4962 | end | |
| 4963 | function ParticleEmitter3(Table) | |
| 4964 | local PRTCL3 = Particle2:Clone() | |
| 4965 | local Speed = Table.Speed or 0 | |
| 4966 | local Drag = Table.Drag or 0 | |
| 4967 | local Size1 = Table.Size1 or 1 | |
| 4968 | local Size2 = Table.Size2 or 2 | |
| 4969 | local Lifetime1 = Table.Lifetime1 or 1 | |
| 4970 | local Lifetime2 = Table.Lifetime2 or 1 | |
| 4971 | local Parent = Table.Parent or Torso | |
| 4972 | local Emit = Table.Emit or 100 | |
| 4973 | local Offset = Table.Offset or 0 | |
| 4974 | local Acel = Table.Acel or VT(0,0,0) | |
| 4975 | local Enabled = Table.Enabled or false | |
| 4976 | PRTCL3.Parent = Parent | |
| 4977 | PRTCL3.Size = NumberSequence.new(Size1,Size2) | |
| 4978 | PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 4979 | PRTCL3.Speed = NumberRange.new(Speed) | |
| 4980 | PRTCL3.VelocitySpread = Offset | |
| 4981 | PRTCL3.Drag = Drag | |
| 4982 | PRTCL3.Acceleration = Acel | |
| 4983 | PRTCL3.Parent = Parent | |
| 4984 | PRTCL3.Size = NumberSequence.new(Size1,Size2) | |
| 4985 | PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 4986 | PRTCL3.Speed = NumberRange.new(Speed) | |
| 4987 | PRTCL3.VelocitySpread = Offset | |
| 4988 | PRTCL3.Drag = Drag | |
| 4989 | PRTCL3.Acceleration = Acel | |
| 4990 | if Enabled == false then | |
| 4991 | PRTCL3:Emit(Emit) | |
| 4992 | Debris:AddItem(PRTCL3,Lifetime2) | |
| 4993 | else | |
| 4994 | PRTCL3.Enabled = true | |
| 4995 | end | |
| 4996 | return PRTCL3 | |
| 4997 | end | |
| 4998 | ||
| 4999 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
| 5000 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
| |
| 5001 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 5002 | MakeForm(Part,"Wedge") | |
| 5003 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 5004 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
| 5005 | MakeForm(Part,"Wedge") | |
| 5006 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
| |
| 5007 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
| 5008 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 5009 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
| 5010 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 5011 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
| 5012 | MakeForm(Part,"Cyl") | |
| 5013 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 5014 | for i = 1, 8 do | |
| 5015 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
| 5016 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 5017 | end | |
| 5018 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
| 5019 | MakeForm(Part,"Cyl") | |
| 5020 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 5021 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
| 5022 | MakeForm(Part,"Ball") | |
| 5023 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 5024 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
| 5025 | MakeForm(Part,"Wedge") | |
| 5026 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
| |
| 5027 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
| 5028 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 5029 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
| 5030 | MakeForm(Part,"Cyl") | |
| 5031 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 5032 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
| 5033 | MakeForm(Part,"Cyl") | |
| 5034 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 5035 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
| 5036 | MakeForm(Part,"Cyl") | |
| 5037 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 5038 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 5039 | MakeForm(Part,"Wedge") | |
| 5040 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 5041 | local LASTPART = Handle | |
| 5042 | for i = 1, 10 do | |
| 5043 | if LASTPART == Handle then | |
| 5044 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
| 5045 | LASTPART = Part | |
| 5046 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 5047 | else | |
| 5048 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
| 5049 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
| |
| 5050 | LASTPART = Part | |
| 5051 | end | |
| 5052 | end | |
| 5053 | ||
| 5054 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
| 5055 | MakeForm(Barrel,"Cyl") | |
| 5056 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 5057 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
| 5058 | MakeForm(Part,"Cyl") | |
| 5059 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
| |
| 5060 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
| 5061 | MakeForm(Part,"Wedge") | |
| 5062 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 5063 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
| 5064 | MakeForm(Hole,"Cyl") | |
| 5065 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
| |
| 5066 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
| 5067 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 5068 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
| |
| 5069 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
| 5070 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 5071 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
| |
| 5072 | coroutine.resume(coroutine.create(function() | |
| 5073 | while wait() do | |
| 5074 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
| 5075 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
| 5076 | end | |
| 5077 | end)) | |
| 5078 | --PARTICLES REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE | |
| 5079 | --[[ | |
| 5080 | YEAH BOIIIIIIIII | |
| 5081 | PARTICLE TIME | |
| 5082 | --]] | |
| 5083 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
| |
| 5084 | --ParticleEmitter3({Speed = 0, Drag = 0, Size1 = 20, Size2 = 25, Lifetime1 = 0.3, Lifetime2 = 1, Parent = Barrel, Emit = 100, Offset = 0, Enabled = true, Acel = VT(0,0,0)})
| |
| 5085 | ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
| |
| 5086 | ParticleEmitter2({Speed = 0, Drag = 0, Size1 = .5, Size2 = 1, Lifetime1 = 1, Lifetime2 = 1, Parent = Hole, Emit = 20, Offset = 360, Enabled = true, Acel = VT(0,0,0)})
| |
| 5087 | ParticleEmitter2({Speed = 0, Drag = 0, Size1 = 3, Size2 = 1, Lifetime1 = 1, Lifetime2 = 2, Parent = Handle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,0,0)})
| |
| 5088 | --Trails | |
| 5089 | local A1 = Instance.new("Attachment",Barrel)
| |
| 5090 | local A2 = Instance.new("Attachment",Barrel)
| |
| 5091 | local Trail = Instance.new("Trail",Barrel)
| |
| 5092 | A1.Position = Vector3.new(0,1,0) | |
| 5093 | A2.Position = Vector3.new(0,-0.8,0) | |
| 5094 | Trail.Attachment0 = A1 | |
| 5095 | Trail.Attachment1 = A2 | |
| 5096 | Trail.LightEmission = 1 | |
| 5097 | Trail.Color = ColorSequence.new(Color3.new(0,0,255),Color3.new(0,255,255)) | |
| 5098 | Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)})
| |
| 5099 | for _, c in pairs(Weapon:GetDescendants()) do | |
| 5100 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 5101 | c.Material = "Glass" | |
| 5102 | c.Color = C3(0,0,0) | |
| 5103 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 5104 | c.Color = C3(0,0,1) | |
| 5105 | c.Material = "Neon" | |
| 5106 | end | |
| 5107 | end | |
| 5108 | ||
| 5109 | Weapon.Parent = Character | |
| 5110 | for _, c in pairs(Weapon:GetChildren()) do | |
| 5111 | if c.ClassName == "Part" then | |
| 5112 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 5113 | end | |
| 5114 | end | |
| 5115 | ||
| 5116 | local SKILLTEXTCOLOR = C3(0,0,1) | |
| 5117 | local SKILLFONT = "Antique" | |
| 5118 | local SKILLTEXTSIZE = 7 | |
| 5119 | ||
| 5120 | Humanoid.Died:connect(function() | |
| 5121 | ATTACK = true | |
| 5122 | end) | |
| 5123 | ||
| 5124 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
| 5125 | --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
| 5126 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
| 5127 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
| 5128 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
| 5129 | --]] | |
| 5130 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
| 5131 | --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
| 5132 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
| 5133 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
| 5134 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
| 5135 | --]] | |
| 5136 | function printbye(Name) | |
| 5137 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
| |
| 5138 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
| 5139 | ||
| 5140 | end | |
| 5141 | ||
| 5142 | workspace.ChildAdded:connect(function(instance) | |
| 5143 | for BANISH = 1, #TOBANISH do | |
| 5144 | if TOBANISH[BANISH] ~= nil then | |
| 5145 | if instance.Name == TOBANISH[BANISH] then | |
| 5146 | coroutine.resume(coroutine.create(function() | |
| 5147 | printbye(instance.Name) | |
| 5148 | instance:ClearAllChildren() | |
| 5149 | Debris:AddItem(instance,0.0005) | |
| 5150 | end)) | |
| 5151 | end | |
| 5152 | end | |
| 5153 | end | |
| 5154 | end) | |
| 5155 | ||
| 5156 | --//=================================\\ | |
| 5157 | --|| DAMAGING | |
| 5158 | --\\=================================// | |
| 5159 | ||
| 5160 | function Banish(Foe) | |
| 5161 | if Foe then | |
| 5162 | coroutine.resume(coroutine.create(function() | |
| 5163 | --if game.Players:FindFirstChild(Foe.Name) then | |
| 5164 | table.insert(TOBANISH,Foe.Name) | |
| 5165 | printbye(Foe.Name) | |
| 5166 | --end | |
| 5167 | Foe.Archivable = true | |
| 5168 | local CLONE = Foe:Clone() | |
| 5169 | Foe:Destroy() | |
| 5170 | CLONE.Parent = Effects | |
| 5171 | CLONE:BreakJoints() | |
| 5172 | local MATERIALS = {"Glass","Neon"}
| |
| 5173 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 5174 | if c:IsA("BasePart") then
| |
| 5175 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
| 5176 | CreateSound(340722848, c, 10, 1, false) | |
| 5177 | end | |
| 5178 | c.Anchored = true | |
| 5179 | c.Transparency = c.Transparency + 0.2 | |
| 5180 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 5181 | c.Color = C3(0,0,255) | |
| 5182 | if c.ClassName == "MeshPart" then | |
| 5183 | c.TextureID = "" | |
| 5184 | end | |
| 5185 | if c:FindFirstChildOfClass("SpecialMesh") then
| |
| 5186 | c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
| |
| 5187 | end | |
| 5188 | if c:FindFirstChildOfClass("Decal") then
| |
| 5189 | c:FindFirstChildOfClass("Decal"):remove()
| |
| 5190 | end | |
| 5191 | c.Name = "Banished" | |
| 5192 | c.CanCollide = false | |
| 5193 | else | |
| 5194 | c:remove() | |
| 5195 | end | |
| 5196 | end | |
| 5197 | local A = false | |
| 5198 | for i = 1, 35 do | |
| 5199 | if A == false then | |
| 5200 | A = true | |
| 5201 | elseif A == true then | |
| 5202 | A = false | |
| 5203 | end | |
| 5204 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 5205 | if c:IsA("BasePart") then
| |
| 5206 | c.Anchored = true | |
| 5207 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 5208 | c.Transparency = c.Transparency + 0.8/35 | |
| 5209 | if A == false then | |
| 5210 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 5211 | elseif A == true then | |
| 5212 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 5213 | end | |
| 5214 | end | |
| 5215 | end | |
| 5216 | Swait() | |
| 5217 | end | |
| 5218 | CLONE:remove() | |
| 5219 | end)) | |
| 5220 | end | |
| 5221 | end | |
| 5222 | ||
| 5223 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
| 5224 | local CHILDREN = workspace:GetDescendants() | |
| 5225 | for index, CHILD in pairs(CHILDREN) do | |
| 5226 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 5227 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 5228 | if HUM then | |
| 5229 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 5230 | if TORSO then | |
| 5231 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 5232 | if ISBANISH == true then | |
| 5233 | Banish(CHILD) | |
| 5234 | else | |
| 5235 | if ISBANISH == "Gravity" then | |
| 5236 | HUM.PlatformStand = true | |
| 5237 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 5238 | local grav = Instance.new("BodyPosition",TORSO)
| |
| 5239 | grav.D = 15 | |
| 5240 | grav.P = 20000 | |
| 5241 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 5242 | grav.position = TORSO.Position | |
| 5243 | grav.Name = "V3BanishForce"..Player.Name | |
| 5244 | else | |
| 5245 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
| |
| 5246 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
| 5247 | end | |
| 5248 | else | |
| 5249 | HUM.PlatformStand = false | |
| 5250 | end | |
| 5251 | end | |
| 5252 | elseif ISBANISH == "Gravity" then | |
| 5253 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 5254 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
| |
| 5255 | HUM.PlatformStand = false | |
| 5256 | end | |
| 5257 | end | |
| 5258 | end | |
| 5259 | end | |
| 5260 | end | |
| 5261 | end | |
| 5262 | end | |
| 5263 | ||
| 5264 | --//=================================\\ | |
| 5265 | --|| ATTACK FUNCTIONS AND STUFF | |
| 5266 | --\\=================================// | |
| 5267 | ||
| 5268 | function Banisher_Bullet() | |
| 5269 | ATTACK = true | |
| 5270 | Rooted = false | |
| 5271 | for i=0, 0.4, 0.1 / Animation_Speed do | |
| 5272 | Swait() | |
| 5273 | turnto(Mouse.Hit.p) | |
| 5274 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
| 5275 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
| 5276 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 5277 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 5278 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 5279 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 5280 | end | |
| 5281 | repeat | |
| 5282 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 5283 | Swait() | |
| 5284 | turnto(Mouse.Hit.p) | |
| 5285 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
| 5286 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
| 5287 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 5288 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 5289 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 5290 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 5291 | end | |
| 5292 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
| 5293 | SpawnTrail(Hole.Position,POS) | |
| 5294 | if HIT ~= nil then | |
| 5295 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 5296 | Banish(HIT.Parent) | |
| 5297 | end | |
| 5298 | end | |
| 5299 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 5300 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 5301 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 5302 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 5303 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 5304 | Swait() | |
| 5305 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
| 5306 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
| 5307 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 5308 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 5309 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 5310 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 5311 | end | |
| 5312 | until KEYHOLD == false | |
| 5313 | ATTACK = false | |
| 5314 | Rooted = false | |
| 5315 | end | |
| 5316 | ||
| 5317 | function AttackTemplate() | |
| 5318 | ATTACK = true | |
| 5319 | Rooted = false | |
| 5320 | for i=0, 1, 0.1 / Animation_Speed do | |
| 5321 | Swait() | |
| 5322 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 5323 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 5324 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 5325 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 5326 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 5327 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 5328 | end | |
| 5329 | ATTACK = false | |
| 5330 | Rooted = false | |
| 5331 | end | |
| 5332 | ||
| 5333 | --//=================================\\ | |
| 5334 | --|| ASSIGN THINGS TO KEYS | |
| 5335 | --\\=================================// | |
| 5336 | ||
| 5337 | function MouseDown(Mouse) | |
| 5338 | if ATTACK == false then | |
| 5339 | end | |
| 5340 | end | |
| 5341 | ||
| 5342 | function MouseUp(Mouse) | |
| 5343 | HOLD = false | |
| 5344 | end | |
| 5345 | ||
| 5346 | function KeyDown(Key) | |
| 5347 | KEYHOLD = true | |
| 5348 | if Key == "z" and ATTACK == false then | |
| 5349 | Banisher_Bullet() | |
| 5350 | end | |
| 5351 | ||
| 5352 | if Key == "b" and ATTACK == false then | |
| 5353 | end | |
| 5354 | ||
| 5355 | if Key == "c" and ATTACK == false then | |
| 5356 | end | |
| 5357 | ||
| 5358 | if Key == "v" and ATTACK == false then | |
| 5359 | end | |
| 5360 | ||
| 5361 | if Key == "x" and ATTACK == false then | |
| 5362 | end | |
| 5363 | end | |
| 5364 | ||
| 5365 | function KeyUp(Key) | |
| 5366 | KEYHOLD = false | |
| 5367 | end | |
| 5368 | ||
| 5369 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 5370 | MouseDown(NEWKEY) | |
| 5371 | end) | |
| 5372 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 5373 | MouseUp(NEWKEY) | |
| 5374 | end) | |
| 5375 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 5376 | KeyDown(NEWKEY) | |
| 5377 | end) | |
| 5378 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 5379 | KeyUp(NEWKEY) | |
| 5380 | end) | |
| 5381 | ||
| 5382 | --//=================================\\ | |
| 5383 | --\\=================================// | |
| 5384 | ||
| 5385 | ||
| 5386 | function unanchor() | |
| 5387 | if UNANCHOR == true then | |
| 5388 | g = Character:GetChildren() | |
| 5389 | for i = 1, #g do | |
| 5390 | if g[i].ClassName == "Part" then | |
| 5391 | g[i].Anchored = false | |
| 5392 | end | |
| 5393 | end | |
| 5394 | end | |
| 5395 | end | |
| 5396 | ||
| 5397 | ||
| 5398 | --//=================================\\ | |
| 5399 | --|| WRAP THE WHOLE SCRIPT UP | |
| 5400 | --\\=================================// | |
| 5401 | ||
| 5402 | Humanoid.Changed:connect(function(Jump) | |
| 5403 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 5404 | Humanoid.Jump = false | |
| 5405 | end | |
| 5406 | end) | |
| 5407 | ||
| 5408 | local CONNECT = nil | |
| 5409 | ||
| 5410 | while true do | |
| 5411 | Swait() | |
| 5412 | ANIMATE.Parent = nil | |
| 5413 | if Character:FindFirstChildOfClass("Humanoid") == nil then
| |
| 5414 | Humanoid = IT("Humanoid",Character)
| |
| 5415 | end | |
| 5416 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 5417 | v:Stop(); | |
| 5418 | end | |
| 5419 | SINE = SINE + CHANGE | |
| 5420 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 5421 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 5422 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 5423 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
| 5424 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
| 5425 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 5426 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 5427 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 5428 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 5429 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
| 5430 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 5431 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 5432 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 5433 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 5434 | end | |
| 5435 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 5436 | ANIM = "Jump" | |
| 5437 | if ATTACK == false then | |
| 5438 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 5439 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 5440 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 5441 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 5442 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 5443 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 5444 | end | |
| 5445 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 5446 | ANIM = "Fall" | |
| 5447 | if ATTACK == false then | |
| 5448 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 5449 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 5450 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 5451 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 5452 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 5453 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 5454 | end | |
| 5455 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 5456 | ANIM = "Idle" | |
| 5457 | if ATTACK == false then | |
| 5458 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
| 5459 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
| 5460 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 5461 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 5462 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 5463 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 5464 | end | |
| 5465 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 5466 | ANIM = "Walk" | |
| 5467 | if ATTACK == false then | |
| 5468 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 5469 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 5470 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 5471 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
| 5472 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
| 5473 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
| 5474 | end | |
| 5475 | end | |
| 5476 | unanchor() | |
| 5477 | Humanoid.MaxHealth = "inf" | |
| 5478 | Humanoid.Health = "inf" | |
| 5479 | if Rooted == false then | |
| 5480 | Disable_Jump = false | |
| 5481 | Humanoid.WalkSpeed = Speed | |
| 5482 | elseif Rooted == true then | |
| 5483 | Disable_Jump = true | |
| 5484 | Humanoid.WalkSpeed = 0 | |
| 5485 | end | |
| 5486 | sick.Parent = Torso | |
| 5487 | sick:resume() | |
| 5488 | sick.Volume = 5 | |
| 5489 | sick.Pitch = 1 | |
| 5490 | sick.SoundId = "rbxassetid://924339757" | |
| 5491 | sick.Name = "BanishV3Music" | |
| 5492 | end | |
| 5493 | ||
| 5494 | --//=================================\\ | |
| 5495 | --\\=================================// | |
| 5496 | ||
| 5497 | ||
| 5498 | ||
| 5499 | ||
| 5500 | ||
| 5501 | --//====================================================\\-- | |
| 5502 | --|| END OF SCRIPT | |
| 5503 | --\\====================================================//-- |