SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 4 | local RealPlayer = Player | |
| 5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
| |
| 6 | ||
| 7 | wait(1) | |
| 8 | ||
| 9 | ||
| 10 | ||
| 11 | math.randomseed(tick()) | |
| 12 | local player = game.Players.LocalPlayer | |
| 13 | local rekt = {}
| |
| 14 | local paralyzed = false | |
| 15 | local curpoint = nil | |
| 16 | local curpart = nil | |
| 17 | local finishnum = 1 | |
| 18 | local zombiemode = false | |
| 19 | local zombies = {}
| |
| 20 | local lastgui = nil | |
| 21 | local mouse = player:GetMouse() | |
| 22 | ||
| 23 | function getplr(char) | |
| 24 | local plr = nil | |
| 25 | for i,v in pairs(game.Players:GetChildren()) do | |
| 26 | if v.Character == char then | |
| 27 | plr = v | |
| 28 | end | |
| 29 | end | |
| 30 | return plr | |
| 31 | end | |
| 32 | ||
| 33 | function bleed(frick) | |
| 34 | while frick.Parent ~= nil do | |
| 35 | local reeee = coroutine.wrap(function() | |
| 36 | local thing = Instance.new('Part',game.Workspace)
| |
| 37 | thing.Size = Vector3.new(0.2,0.2,0.2) | |
| 38 | thing.CFrame = frick.CFrame | |
| 39 | thing.Shape = Enum.PartType.Ball | |
| 40 | thing.CFrame = frick.CFrame | |
| 41 | thing.Transparency = 1 | |
| 42 | thing.BrickColor = BrickColor.new('Maroon')
| |
| 43 | thing.Material = Enum.Material.SmoothPlastic | |
| 44 | thing.Name = "Blood" | |
| 45 | thing.CanCollide =false | |
| 46 | local rawrxd = Instance.new('BodyForce',thing)
| |
| 47 | rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0) | |
| 48 | local coru = coroutine.wrap(function() | |
| 49 | wait(0.01) | |
| 50 | rawrxd:Destroy() | |
| 51 | end) | |
| 52 | coru() | |
| 53 | local ree = Instance.new('ParticleEmitter',thing)
| |
| 54 | ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.fromRGB(100,0,0)),ColorSequenceKeypoint.new(1,Color3.fromRGB(100,0,0))})
| |
| 55 | ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)})
| |
| 56 | ree.Texture = 'rbxassetid://867743272' | |
| 57 | ree.Lifetime = NumberRange.new(0.4) | |
| 58 | ree.Rate = 50 | |
| 59 | ree.LockedToPart = true | |
| 60 | ree.Speed = NumberRange.new(0, 2) | |
| 61 | ||
| 62 | thing.Touched:connect(function(tou) | |
| 63 | 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
| |
| 64 | local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z) | |
| 65 | thing:Destroy() | |
| 66 | if tou.Name == "BloodPuddle" then | |
| 67 | local reee = tou.CFrame | |
| 68 | if tou.Transparency > -0.2 then | |
| 69 | tou.Transparency = tou.Transparency -0.1 | |
| 70 | end | |
| 71 | if tou.Size.X < 10 then | |
| 72 | tou.Size = tou.Size+Vector3.new(0.1,0,0.1) | |
| 73 | tou.CFrame = reee | |
| 74 | end | |
| 75 | else | |
| 76 | local bloodlol = Instance.new('Part',workspace)
| |
| 77 | bloodlol.Size=Vector3.new(1,0.2,1) | |
| 78 | bloodlol.Name = "BloodPuddle" | |
| 79 | bloodlol.Anchored = true | |
| 80 | bloodlol.CanCollide = false | |
| 81 | bloodlol.Material = Enum.Material.SmoothPlastic | |
| 82 | bloodlol.BrickColor = BrickColor.new('Maroon')
| |
| 83 | local cyl = Instance.new('CylinderMesh',bloodlol)
| |
| 84 | cyl.Scale = Vector3.new(1,0.1,1) | |
| 85 | bloodlol.CFrame = CFrame.new(pos) | |
| 86 | local coru=coroutine.wrap(function() | |
| 87 | while bloodlol.Parent ~= nil do | |
| 88 | if bloodlol.Transparency < 1 then | |
| 89 | bloodlol.Transparency = bloodlol.Transparency+0.05 | |
| 90 | else | |
| 91 | bloodlol:Destroy() | |
| 92 | end | |
| 93 | wait(0.1) | |
| 94 | end | |
| 95 | end) | |
| 96 | coru() | |
| 97 | end | |
| 98 | end | |
| 99 | end) | |
| 100 | local coru = coroutine.wrap(function() | |
| 101 | wait(1) | |
| 102 | thing:Destroy() | |
| 103 | end) | |
| 104 | coru() | |
| 105 | end) | |
| 106 | reeee() | |
| 107 | wait() | |
| 108 | end | |
| 109 | end | |
| 110 | ||
| 111 | function killz(playa,hitz,kneef,explode,pool,head,charred,override) | |
| 112 | local soundy = false | |
| 113 | local heyy = hitz | |
| 114 | if hitz == "Right Arm" then | |
| 115 | local Limb = playa:FindFirstChild("Right Arm")
| |
| 116 | local ters = playa:FindFirstChild('Torso')
| |
| 117 | if Limb and ters then | |
| 118 | if ters:FindFirstChild('Right Shoulder') then ters["Right Shoulder"]:Destroy() end
| |
| 119 | for i,v in pairs(Limb:GetChildren()) do | |
| 120 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then
| |
| 121 | v:Destroy() | |
| 122 | end | |
| 123 | end | |
| 124 | Limb.CFrame = ters.CFrame * CFrame.new(1.5, 0, 0) | |
| 125 | local Joint = Instance.new("Rotate")
| |
| 126 | Joint.Name = "RightShoulder" | |
| 127 | Joint.Part0 = ters | |
| 128 | Joint.Part1 = Limb | |
| 129 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 130 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 131 | Joint.Parent = ters | |
| 132 | if charred and zombiemode == false then | |
| 133 | Limb.BrickColor = BrickColor.new('Black')
| |
| 134 | local fire = Instance.new('Fire',Limb)
| |
| 135 | fire.Heat = 5 | |
| 136 | fire.Size = 5 | |
| 137 | game:GetService('Debris'):AddItem(fire,2)
| |
| 138 | local coru=coroutine.wrap(function() | |
| 139 | wait(2) | |
| 140 | for i,v in pairs(Limb:GetChildren()) do | |
| 141 | if v:IsA('ParticleEmitter') then
| |
| 142 | v:Destroy() | |
| 143 | end | |
| 144 | end | |
| 145 | end) | |
| 146 | coru() | |
| 147 | end | |
| 148 | local B = Instance.new("Part")
| |
| 149 | B.TopSurface = 0 | |
| 150 | B.BottomSurface = 0 | |
| 151 | B.formFactor = "Symmetric" | |
| 152 | B.Size = Vector3.new(1, 1, 1) | |
| 153 | B.Transparency = 1 | |
| 154 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 155 | B.Parent = playa | |
| 156 | local W = Instance.new("Weld")
| |
| 157 | W.Part0 = Limb | |
| 158 | W.Part1 = B | |
| 159 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 160 | W.Parent = Limb | |
| 161 | if kneef then | |
| 162 | local coru = coroutine.wrap(function() | |
| 163 | local uno = Instance.new('Part',workspace)
| |
| 164 | local dos = Instance.new('Part',workspace)
| |
| 165 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 166 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 167 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 168 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 169 | weld.Part1 = kneef["big ass knife"] | |
| 170 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 171 | uno:Destroy() | |
| 172 | dos:Destroy() | |
| 173 | playa:FindFirstChild(hitz).Anchored = false | |
| 174 | for i, v in pairs(kneef:GetChildren()) do | |
| 175 | if v:IsA('BasePart') then
| |
| 176 | v.Anchored = false | |
| 177 | end | |
| 178 | end | |
| 179 | if zombiemode == false or override then | |
| 180 | wait() | |
| 181 | end | |
| 182 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 183 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 184 | end | |
| 185 | local bleedpart = Instance.new("Part", kneef)
| |
| 186 | bleedpart.CanCollide = false | |
| 187 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 188 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
| 189 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 190 | bleedpart.Transparency = 1 | |
| 191 | ||
| 192 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 193 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 194 | bleedpartweld.Part1 = bleedpart | |
| 195 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 196 | local coru = coroutine.wrap(function() | |
| 197 | bleed(bleedpart) | |
| 198 | end) | |
| 199 | coru() | |
| 200 | game:GetService('Debris'):AddItem(bleedpart,2)
| |
| 201 | end) | |
| 202 | coru() | |
| 203 | end | |
| 204 | end | |
| 205 | elseif hitz == "Left Arm" then | |
| 206 | local Limb = playa:FindFirstChild("Left Arm")
| |
| 207 | local ters = playa:FindFirstChild('Torso')
| |
| 208 | if Limb and ters then | |
| 209 | if ters:FindFirstChild('Left Shoulder') then ters["Left Shoulder"]:Destroy() end
| |
| 210 | for i,v in pairs(Limb:GetChildren()) do | |
| 211 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then
| |
| 212 | v:Destroy() | |
| 213 | end | |
| 214 | end | |
| 215 | Limb.CFrame = ters.CFrame * CFrame.new(-1.5, 0, 0) | |
| 216 | local Joint = Instance.new("Rotate")
| |
| 217 | Joint.Name = "LeftShoulder" | |
| 218 | Joint.Part0 = ters | |
| 219 | Joint.Part1 = Limb | |
| 220 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 221 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 222 | Joint.Parent = ters | |
| 223 | if charred and zombiemode == false then | |
| 224 | Limb.BrickColor = BrickColor.new('Black')
| |
| 225 | local fire = Instance.new('Fire',Limb)
| |
| 226 | fire.Heat = 5 | |
| 227 | fire.Size = 5 | |
| 228 | game:GetService('Debris'):AddItem(fire,2)
| |
| 229 | local coru=coroutine.wrap(function() | |
| 230 | wait(2) | |
| 231 | for i,v in pairs(Limb:GetChildren()) do | |
| 232 | if v:IsA('ParticleEmitter') then
| |
| 233 | v:Destroy() | |
| 234 | end | |
| 235 | end | |
| 236 | end) | |
| 237 | coru() | |
| 238 | end | |
| 239 | ||
| 240 | local B = Instance.new("Part")
| |
| 241 | B.TopSurface = 0 | |
| 242 | B.BottomSurface = 0 | |
| 243 | B.formFactor = "Symmetric" | |
| 244 | B.Size = Vector3.new(1, 1, 1) | |
| 245 | B.CanCollide = true | |
| 246 | B.Transparency = 1 | |
| 247 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 248 | B.Parent = playa | |
| 249 | local W = Instance.new("Weld")
| |
| 250 | W.Part0 = ters | |
| 251 | W.Part1 = B | |
| 252 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 253 | W.Parent = Limb | |
| 254 | if kneef then | |
| 255 | local coru = coroutine.wrap(function() | |
| 256 | local uno = Instance.new('Part',workspace)
| |
| 257 | local dos = Instance.new('Part',workspace)
| |
| 258 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 259 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 260 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 261 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 262 | weld.Part1 = kneef["big ass knife"] | |
| 263 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 264 | uno:Destroy() | |
| 265 | dos:Destroy() | |
| 266 | playa:FindFirstChild(hitz).Anchored = false | |
| 267 | for i, v in pairs(kneef:GetChildren()) do | |
| 268 | if v:IsA('BasePart') then
| |
| 269 | v.Anchored = false | |
| 270 | end | |
| 271 | end | |
| 272 | if zombiemode == false or override then | |
| 273 | wait() | |
| 274 | end | |
| 275 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 276 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 277 | end | |
| 278 | local bleedpart = Instance.new("Part", kneef)
| |
| 279 | bleedpart.CanCollide = false | |
| 280 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 281 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
| 282 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 283 | bleedpart.Transparency = 1 | |
| 284 | ||
| 285 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 286 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 287 | bleedpartweld.Part1 = bleedpart | |
| 288 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 289 | local coru = coroutine.wrap(function() | |
| 290 | bleed(bleedpart) | |
| 291 | end) | |
| 292 | coru() | |
| 293 | game:GetService('Debris'):AddItem(bleedpart,2)
| |
| 294 | end) | |
| 295 | coru() | |
| 296 | end | |
| 297 | end | |
| 298 | elseif hitz == "Right Leg" then | |
| 299 | local Limb = playa:FindFirstChild("Right Leg")
| |
| 300 | local ters = playa:FindFirstChild('Torso')
| |
| 301 | if Limb and ters then | |
| 302 | if ters:FindFirstChild('Right Hip') then ters["Right Hip"]:Destroy() end
| |
| 303 | for i,v in pairs(Limb:GetChildren()) do | |
| 304 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then
| |
| 305 | v:Destroy() | |
| 306 | end | |
| 307 | end | |
| 308 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
| 309 | local Joint = Instance.new("Rotate")
| |
| 310 | Joint.Name = "Right Hip" | |
| 311 | Joint.Part0 = ters | |
| 312 | Joint.Part1 = Limb | |
| 313 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 314 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 315 | Joint.Parent = ters | |
| 316 | if charred and zombiemode == false then | |
| 317 | Limb.BrickColor = BrickColor.new('Black')
| |
| 318 | local fire = Instance.new('Fire',Limb)
| |
| 319 | fire.Heat = 5 | |
| 320 | fire.Size = 5 | |
| 321 | game:GetService('Debris'):AddItem(fire,2)
| |
| 322 | local coru=coroutine.wrap(function() | |
| 323 | wait(2) | |
| 324 | for i,v in pairs(Limb:GetChildren()) do | |
| 325 | if v:IsA('ParticleEmitter') then
| |
| 326 | v:Destroy() | |
| 327 | end | |
| 328 | end | |
| 329 | end) | |
| 330 | coru() | |
| 331 | end | |
| 332 | local B = Instance.new("Part")
| |
| 333 | B.TopSurface = 0 | |
| 334 | B.BottomSurface = 0 | |
| 335 | B.formFactor = "Symmetric" | |
| 336 | B.Size = Vector3.new(1, 1, 1) | |
| 337 | B.Transparency = 1 | |
| 338 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 339 | B.Parent = playa | |
| 340 | local W = Instance.new("Weld")
| |
| 341 | W.Part0 = Limb | |
| 342 | W.Part1 = B | |
| 343 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 344 | W.Parent = Limb | |
| 345 | if kneef then | |
| 346 | local coru = coroutine.wrap(function() | |
| 347 | local uno = Instance.new('Part',workspace)
| |
| 348 | local dos = Instance.new('Part',workspace)
| |
| 349 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 350 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 351 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 352 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 353 | weld.Part1 = kneef["big ass knife"] | |
| 354 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 355 | uno:Destroy() | |
| 356 | dos:Destroy() | |
| 357 | playa:FindFirstChild(hitz).Anchored = false | |
| 358 | for i, v in pairs(kneef:GetChildren()) do | |
| 359 | if v:IsA('BasePart') then
| |
| 360 | v.Anchored = false | |
| 361 | end | |
| 362 | end | |
| 363 | if zombiemode == false or override then | |
| 364 | wait() | |
| 365 | end | |
| 366 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 367 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 368 | end | |
| 369 | local bleedpart = Instance.new("Part", kneef)
| |
| 370 | bleedpart.CanCollide = false | |
| 371 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 372 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
| 373 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 374 | bleedpart.Transparency = 1 | |
| 375 | ||
| 376 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 377 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 378 | bleedpartweld.Part1 = bleedpart | |
| 379 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 380 | local coru = coroutine.wrap(function() | |
| 381 | bleed(bleedpart) | |
| 382 | end) | |
| 383 | coru() | |
| 384 | game:GetService('Debris'):AddItem(bleedpart,2)
| |
| 385 | end) | |
| 386 | coru() | |
| 387 | end | |
| 388 | if playa then | |
| 389 | table.insert(rekt,playa) | |
| 390 | end | |
| 391 | end | |
| 392 | elseif hitz == "Left Leg" then | |
| 393 | local Limb = playa:FindFirstChild("Left Leg")
| |
| 394 | local ters = playa:FindFirstChild('Torso')
| |
| 395 | if Limb and ters then | |
| 396 | if ters:FindFirstChild('Left Hip') then ters["Left Hip"]:Destroy() end
| |
| 397 | for i,v in pairs(Limb:GetChildren()) do | |
| 398 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then
| |
| 399 | v:Destroy() | |
| 400 | end | |
| 401 | end | |
| 402 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
| 403 | Limb.CFrame = ters.CFrame * CFrame.new(-0.5, -2, 0) | |
| 404 | local Joint = Instance.new("Rotate")
| |
| 405 | Joint.Name = "LeftHip" | |
| 406 | Joint.Part0 = ters | |
| 407 | Joint.Part1 = Limb | |
| 408 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 409 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 410 | Joint.Parent = ters | |
| 411 | if charred and zombiemode == false then | |
| 412 | Limb.BrickColor = BrickColor.new('Black')
| |
| 413 | local fire = Instance.new('Fire',Limb)
| |
| 414 | fire.Heat = 5 | |
| 415 | fire.Size = 5 | |
| 416 | game:GetService('Debris'):AddItem(fire,2)
| |
| 417 | local coru=coroutine.wrap(function() | |
| 418 | wait(2) | |
| 419 | for i,v in pairs(Limb:GetChildren()) do | |
| 420 | if v:IsA('ParticleEmitter') then
| |
| 421 | v:Destroy() | |
| 422 | end | |
| 423 | end | |
| 424 | end) | |
| 425 | coru() | |
| 426 | end | |
| 427 | ||
| 428 | local B = Instance.new("Part")
| |
| 429 | B.TopSurface = 0 | |
| 430 | B.BottomSurface = 0 | |
| 431 | B.formFactor = "Symmetric" | |
| 432 | B.Size = Vector3.new(1, 1, 1) | |
| 433 | B.Transparency = 1 | |
| 434 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 435 | B.Parent = playa | |
| 436 | local W = Instance.new("Weld")
| |
| 437 | W.Part0 = Limb | |
| 438 | W.Part1 = B | |
| 439 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 440 | W.Parent = Limb | |
| 441 | Limb.CanCollide = false | |
| 442 | if kneef then | |
| 443 | local coru = coroutine.wrap(function() | |
| 444 | local uno = Instance.new('Part',workspace)
| |
| 445 | local dos = Instance.new('Part',workspace)
| |
| 446 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 447 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 448 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 449 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 450 | weld.Part1 = kneef["big ass knife"] | |
| 451 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 452 | uno:Destroy() | |
| 453 | dos:Destroy() | |
| 454 | playa:FindFirstChild(hitz).Anchored = false | |
| 455 | for i, v in pairs(kneef:GetChildren()) do | |
| 456 | if v:IsA('BasePart') then
| |
| 457 | v.Anchored = false | |
| 458 | end | |
| 459 | end | |
| 460 | if zombiemode == false or override then | |
| 461 | wait() | |
| 462 | end | |
| 463 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 464 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 465 | end | |
| 466 | local bleedpart = Instance.new("Part", kneef)
| |
| 467 | bleedpart.CanCollide = false | |
| 468 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 469 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
| 470 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 471 | bleedpart.Transparency = 1 | |
| 472 | ||
| 473 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 474 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 475 | bleedpartweld.Part1 = bleedpart | |
| 476 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 477 | local coru = coroutine.wrap(function() | |
| 478 | bleed(bleedpart) | |
| 479 | end) | |
| 480 | coru() | |
| 481 | game:GetService('Debris'):AddItem(bleedpart,2)
| |
| 482 | end) | |
| 483 | coru() | |
| 484 | end | |
| 485 | if playa then | |
| 486 | table.insert(rekt,playa) | |
| 487 | end | |
| 488 | end | |
| 489 | elseif playa then | |
| 490 | if finishnum ~= 1 then | |
| 491 | local coru=coroutine.wrap(function() | |
| 492 | player.Character.Head.Psycho.Playing = true | |
| 493 | wait(3) | |
| 494 | player.Character.Head.Psycho.Playing = false | |
| 495 | end) | |
| 496 | coru() | |
| 497 | end | |
| 498 | local playa2 = playa | |
| 499 | playa.Archivable = true | |
| 500 | local playa = playa:Clone() | |
| 501 | playa.Archivable = false | |
| 502 | playa2:Destroy() | |
| 503 | playa.Parent = workspace | |
| 504 | local Gibs = game.Workspace | |
| 505 | local Torso = playa.Torso | |
| 506 | local Head = playa:FindFirstChild("Head")
| |
| 507 | local function Scan(ch) | |
| 508 | local e | |
| 509 | for e = 1,#ch do | |
| 510 | Scan(ch[e]:GetChildren()) | |
| 511 | 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
| |
| 512 | ch[e]:remove() | |
| 513 | end | |
| 514 | end | |
| 515 | end | |
| 516 | Scan(playa:GetChildren()) | |
| 517 | if playa:FindFirstChild('HumanoidRootPart') and (zombiemode == false or override) then
| |
| 518 | playa:FindFirstChild('HumanoidRootPart'):Destroy()
| |
| 519 | end | |
| 520 | local hum2 = playa:FindFirstChildOfClass("Humanoid")
| |
| 521 | if zombiemode == true and override == false then | |
| 522 | soundy = true | |
| 523 | end | |
| 524 | if string.sub(hum2.Parent.Name,string.len(hum2.Parent.Name)-8,string.len(hum2.Parent.Name)) ~= "'s Zombie" then | |
| 525 | override = true | |
| 526 | end | |
| 527 | if hum2 ~= nil then | |
| 528 | hum2.Name = "Humanoid2" | |
| 529 | hum2.Health = 0 | |
| 530 | if zombiemode == false or override == true then | |
| 531 | table.insert(rekt,hum2.Parent) | |
| 532 | else | |
| 533 | local gyro = Instance.new('BodyGyro',Torso)
| |
| 534 | hum2.PlatformStand = false | |
| 535 | for i,v in pairs(hum2.Parent.Torso:GetChildren()) do | |
| 536 | if v:IsA('BodyGyro') then v:Destroy() end
| |
| 537 | end | |
| 538 | if playa:FindFirstChild('HumanoidRootPart') then
| |
| 539 | hum2.Parent.HumanoidRootPart.CFrame = hum2.Parent.Torso.CFrame | |
| 540 | local weldcrucial = Instance.new('Weld',hum2.Parent.HumanoidRootPart)
| |
| 541 | weldcrucial.Part0 = hum2.Parent.HumanoidRootPart | |
| 542 | weldcrucial.Part1 = hum2.Parent.Torso | |
| 543 | end | |
| 544 | end | |
| 545 | end | |
| 546 | local ch = playa:GetChildren() | |
| 547 | local i | |
| 548 | for i = 1,#ch do | |
| 549 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
| 550 | ch[i]:remove() | |
| 551 | end | |
| 552 | end | |
| 553 | ||
| 554 | if Head then | |
| 555 | local Neck = Instance.new("Weld")
| |
| 556 | Neck.Name = "Neck" | |
| 557 | Neck.Part0 = Torso | |
| 558 | Neck.Part1 = Head | |
| 559 | if pool then | |
| 560 | local part = Instance.new('Part',Torso)
| |
| 561 | part.Position = Vector3.new(0,10,0) | |
| 562 | part.Size = Vector3.new(0.2,0.2,0.2) | |
| 563 | part.Transparency = 1 | |
| 564 | part.CanCollide = false | |
| 565 | local we = Instance.new('Weld',Torso)
| |
| 566 | we.Part0 = Torso | |
| 567 | we.Part1 = part | |
| 568 | we.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 569 | local coru=coroutine.wrap(function() | |
| 570 | bleed(part) | |
| 571 | end) | |
| 572 | coru() | |
| 573 | end | |
| 574 | if head == false or head == nil then | |
| 575 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 576 | else | |
| 577 | Neck.C0 = CFrame.new(0, 1.5, 0.2)*CFrame.Angles(0.5, 0.25, 0.25) | |
| 578 | local bleedpart = Instance.new("Part", Torso)
| |
| 579 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 580 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 581 | bleedpart.CanCollide = false | |
| 582 | bleedpart.Position = Head.Position + Vector3.new(0, 1, 0) | |
| 583 | bleedpart.Transparency = 1 | |
| 584 | ||
| 585 | local bleedpartweld = Instance.new("Weld", Torso)
| |
| 586 | bleedpartweld.Part0 = Torso | |
| 587 | bleedpartweld.Part1 = bleedpart | |
| 588 | bleedpartweld.C0 = CFrame.Angles(-1, 0, -0.35) * CFrame.new(0, 1, 0.8) | |
| 589 | local coru = coroutine.wrap(function() | |
| 590 | bleed(bleedpart) | |
| 591 | end) | |
| 592 | coru() | |
| 593 | end | |
| 594 | Neck.C1 = CFrame.new() | |
| 595 | Neck.Parent = Torso | |
| 596 | end | |
| 597 | local Limb = playa:FindFirstChild("Right Arm")
| |
| 598 | if Limb then | |
| 599 | ||
| 600 | Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0) | |
| 601 | local Joint = Instance.new("Rotate")
| |
| 602 | Joint.Name = "RightShoulder" | |
| 603 | Joint.Part0 = Torso | |
| 604 | Joint.Part1 = Limb | |
| 605 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 606 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 607 | Joint.Parent = Torso | |
| 608 | ||
| 609 | local B = Instance.new("Part")
| |
| 610 | B.TopSurface = 0 | |
| 611 | B.BottomSurface = 0 | |
| 612 | B.formFactor = "Symmetric" | |
| 613 | B.Size = Vector3.new(1, 1, 1) | |
| 614 | B.Transparency = 1 | |
| 615 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 616 | B.Parent = playa | |
| 617 | local W = Instance.new("Weld")
| |
| 618 | W.Part0 = Limb | |
| 619 | W.Part1 = B | |
| 620 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 621 | W.Parent = Limb | |
| 622 | end | |
| 623 | local Limb = playa:FindFirstChild("Left Arm")
| |
| 624 | if Limb then | |
| 625 | ||
| 626 | Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0) | |
| 627 | local Joint = Instance.new("Rotate")
| |
| 628 | Joint.Name = "LeftShoulder" | |
| 629 | Joint.Part0 = Torso | |
| 630 | Joint.Part1 = Limb | |
| 631 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 632 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 633 | Joint.Parent = Torso | |
| 634 | ||
| 635 | local B = Instance.new("Part")
| |
| 636 | B.TopSurface = 0 | |
| 637 | B.BottomSurface = 0 | |
| 638 | B.formFactor = "Symmetric" | |
| 639 | B.Size = Vector3.new(1, 1, 1) | |
| 640 | B.Transparency = 1 | |
| 641 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 642 | B.Parent = playa | |
| 643 | local W = Instance.new("Weld")
| |
| 644 | W.Part0 = Limb | |
| 645 | W.Part1 = B | |
| 646 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 647 | W.Parent = Limb | |
| 648 | end | |
| 649 | local Limb = playa:FindFirstChild("Right Leg")
| |
| 650 | if Limb then | |
| 651 | Limb.CanCollide = false | |
| 652 | Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0) | |
| 653 | local Joint = Instance.new("Rotate")
| |
| 654 | Joint.Name = "RightHip" | |
| 655 | Joint.Part0 = Torso | |
| 656 | Joint.Part1 = Limb | |
| 657 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 658 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 659 | Joint.Parent = Torso | |
| 660 | ||
| 661 | local B = Instance.new("Part")
| |
| 662 | B.TopSurface = 0 | |
| 663 | B.BottomSurface = 0 | |
| 664 | B.formFactor = "Symmetric" | |
| 665 | B.Size = Vector3.new(1, 1, 1) | |
| 666 | B.Transparency = 1 | |
| 667 | B.CanCollide = true | |
| 668 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 669 | B.Parent = playa | |
| 670 | local W = Instance.new("Weld")
| |
| 671 | W.Part0 = Limb | |
| 672 | W.Part1 = B | |
| 673 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 674 | W.Parent = Limb | |
| 675 | end | |
| 676 | local Limb = playa:FindFirstChild("Left Leg")
| |
| 677 | if Limb then | |
| 678 | Limb.CanCollide = false | |
| 679 | Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0) | |
| 680 | local Joint = Instance.new("Rotate")
| |
| 681 | Joint.Name = "LeftHip" | |
| 682 | Joint.Part0 = Torso | |
| 683 | Joint.Part1 = Limb | |
| 684 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 685 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 686 | Joint.Parent = Torso | |
| 687 | ||
| 688 | local B = Instance.new("Part")
| |
| 689 | B.TopSurface = 0 | |
| 690 | B.BottomSurface = 0 | |
| 691 | if zombiemode == false or override then | |
| 692 | B.CanCollide = true | |
| 693 | end | |
| 694 | B.formFactor = "Symmetric" | |
| 695 | B.Size = Vector3.new(1, 1, 1) | |
| 696 | B.Transparency = 1 | |
| 697 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 698 | B.Parent = playa | |
| 699 | local W = Instance.new("Weld")
| |
| 700 | W.Part0 = Limb | |
| 701 | W.Part1 = B | |
| 702 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 703 | W.Parent = Limb | |
| 704 | end | |
| 705 | --[[ | |
| 706 | local Bar = Instance.new("Part")
| |
| 707 | Bar.TopSurface = 0 | |
| 708 | Bar.BottomSurface = 0 | |
| 709 | Bar.formFactor = "Symmetric" | |
| 710 | Bar.Size = Vector3.new(1, 1, 1) | |
| 711 | Bar.Transparency = 1 | |
| 712 | Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0) | |
| 713 | Bar.Parent = playa | |
| 714 | local Weld = Instance.new("Weld")
| |
| 715 | Weld.Part0 = Torso | |
| 716 | Weld.Part1 = Bar | |
| 717 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
| 718 | Weld.Parent = Torso | |
| 719 | --]] | |
| 720 | playa.Parent = Gibs | |
| 721 | if kneef and explode == nil then | |
| 722 | local coru = coroutine.wrap(function() | |
| 723 | if playa:FindFirstChild(hitz) then | |
| 724 | local uno = Instance.new('Part',workspace)
| |
| 725 | local dos = Instance.new('Part',workspace)
| |
| 726 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 727 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 728 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 729 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 730 | weld.Part1 = kneef["big ass knife"] | |
| 731 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 732 | uno:Destroy() | |
| 733 | dos:Destroy() | |
| 734 | playa:FindFirstChild(hitz).Anchored = false | |
| 735 | for i, v in pairs(kneef:GetChildren()) do | |
| 736 | if v:IsA('BasePart') then
| |
| 737 | v.Anchored = false | |
| 738 | end | |
| 739 | end | |
| 740 | if explode == nil or explode == false then | |
| 741 | local bleedpart = Instance.new("Part", kneef)
| |
| 742 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 743 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 744 | bleedpart.CanCollide = false | |
| 745 | bleedpart.Position = Head.Position + Vector3.new(0, 1, 0) | |
| 746 | bleedpart.Transparency = 1 | |
| 747 | ||
| 748 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 749 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 750 | bleedpartweld.Part1 = bleedpart | |
| 751 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 752 | local coru = coroutine.wrap(function() | |
| 753 | bleed(bleedpart) | |
| 754 | end) | |
| 755 | coru() | |
| 756 | end | |
| 757 | end | |
| 758 | if zombiemode == false or override then | |
| 759 | wait() | |
| 760 | end | |
| 761 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 762 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 763 | end | |
| 764 | end) | |
| 765 | coru() | |
| 766 | end | |
| 767 | if explode then | |
| 768 | local movevector = CFrame.new(explode.Position,Torso.Position).lookVector | |
| 769 | local repulse = Instance.new('BodyForce',Torso)
| |
| 770 | repulse.Force = movevector*10000 + Vector3.new(0,5000,0) | |
| 771 | game.Debris:AddItem(repulse,0.05) | |
| 772 | end | |
| 773 | if charred and zombiemode == false then | |
| 774 | for i,v in pairs(playa:GetChildren()) do | |
| 775 | if v:IsA('BasePart') then
| |
| 776 | v.BrickColor = BrickColor.Black() | |
| 777 | local fire = Instance.new('Fire',v)
| |
| 778 | fire.Size = 5 | |
| 779 | fire.Heat = 5 | |
| 780 | elseif v:IsA('Accessory') then
| |
| 781 | for a,c in pairs(v:GetChildren()) do | |
| 782 | if c:IsA('BasePart') then
| |
| 783 | c.BrickColor = BrickColor.Black() | |
| 784 | local fire = Instance.new('Fire',v)
| |
| 785 | fire.Size = 5 | |
| 786 | fire.Heat = 5 | |
| 787 | for o,p in pairs(c:GetChildren()) do | |
| 788 | if p:IsA("SpecialMesh") then
| |
| 789 | p.TextureId = "" | |
| 790 | end | |
| 791 | end | |
| 792 | end | |
| 793 | end | |
| 794 | end | |
| 795 | end | |
| 796 | end | |
| 797 | if soundy then | |
| 798 | local sound = Instance.new('Sound',Head)
| |
| 799 | sound.SoundId = 'rbxassetid://903640857' | |
| 800 | sound.Volume = 1 | |
| 801 | sound:Play() | |
| 802 | sound.Ended:connect(function() | |
| 803 | sound:Destroy() | |
| 804 | local ambient = Instance.new('Sound',Head)
| |
| 805 | ambient.Volume = 0.25 | |
| 806 | ambient.Looped = true | |
| 807 | ambient.SoundId = 'rbxassetid://903641031' | |
| 808 | ambient:Play() | |
| 809 | end) | |
| 810 | end | |
| 811 | if override then | |
| 812 | 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 | |
| 813 | local coru = coroutine.wrap(function() | |
| 814 | wait(4.5) | |
| 815 | hum2.Parent.Name = hum2.Parent.Name.."'s Zombie" | |
| 816 | hum2.HipHeight = 0.2 | |
| 817 | wait(0.5) | |
| 818 | killz(hum2.Parent,"Head",nil,nil,false,false,false,false) | |
| 819 | end) | |
| 820 | coru() | |
| 821 | else | |
| 822 | game:GetService('Debris'):AddItem(playa, 12)
| |
| 823 | end | |
| 824 | else | |
| 825 | hum2.Health = 0 | |
| 826 | table.insert(zombies,playa) | |
| 827 | local attack = Instance.new('Sound',Head)
| |
| 828 | attack.SoundId = 'rbxassetid://903641424' | |
| 829 | attack.Volume = 2 | |
| 830 | for i,v in pairs(playa:GetChildren()) do | |
| 831 | if v:IsA('BasePart') and v:FindFirstChildOfClass('TouchTransmitter') == nil then
| |
| 832 | v.Touched:connect(function(hit) | |
| 833 | if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') then
| |
| 834 | local found = false | |
| 835 | if hit.Parent == player.Character then | |
| 836 | found = true | |
| 837 | end | |
| 838 | for a,c in pairs(zombies) do | |
| 839 | if c == hit.Parent then | |
| 840 | found = true | |
| 841 | end | |
| 842 | end | |
| 843 | if found == false and hit.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 844 | attack:Play() | |
| 845 | if hit.Parent:FindFirstChildOfClass('Humanoid').Health - 2 <= 0 then
| |
| 846 | hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 847 | wait() | |
| 848 | killz(hit.Parent,"Head") | |
| 849 | else | |
| 850 | hit.Parent:FindFirstChildOfClass('Humanoid'):TakeDamage(2)
| |
| 851 | end | |
| 852 | end | |
| 853 | end | |
| 854 | end) | |
| 855 | end | |
| 856 | end | |
| 857 | local coru = coroutine.wrap(function() | |
| 858 | wait(2) | |
| 859 | for i,v in pairs(playa:GetChildren()) do | |
| 860 | if v:IsA('BasePart') then
| |
| 861 | for a,c in pairs(v:GetChildren()) do | |
| 862 | if c:IsA('Fire') or c:IsA('ParticleEmitter') then
| |
| 863 | c:Destroy() | |
| 864 | end | |
| 865 | end | |
| 866 | elseif v:IsA('Accessory') then
| |
| 867 | for a,c in pairs(v:GetChildren()) do | |
| 868 | if c:IsA('BasePart') then
| |
| 869 | for b,d in pairs(c:GetChildren()) do | |
| 870 | if d:IsA('Fire') or d:IsA('ParticleEmitter') then
| |
| 871 | d:Destroy() | |
| 872 | end | |
| 873 | end | |
| 874 | end | |
| 875 | end | |
| 876 | end | |
| 877 | end | |
| 878 | end) | |
| 879 | coru() | |
| 880 | end | |
| 881 | end | |
| 882 | end | |
| 883 | ||
| 884 | mouse.KeyDown:connect(function(key) | |
| 885 | if key == "t" and mouse.Target then | |
| 886 | local hum = mouse.Target.Parent:FindFirstChildOfClass('Humanoid')
| |
| 887 | if hum == nil then hum = mouse.Target.Parent.Parent:FindFirstChildOfClass('Humanoid') end
| |
| 888 | if curpoint == nil then | |
| 889 | if hum and hum.Parent:FindFirstChild('Head') then
| |
| 890 | curpart = hum.Parent.Head | |
| 891 | else | |
| 892 | curpart = nil | |
| 893 | curpoint = mouse.Hit.p | |
| 894 | end | |
| 895 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end
| |
| 896 | notify("ZOMBIE TARGET SET",false)
| |
| 897 | else | |
| 898 | curpart = nil | |
| 899 | curpoint = nil | |
| 900 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end
| |
| 901 | notify("ZOMBIE TARGET REMOVED",false)
| |
| 902 | end | |
| 903 | elseif key == "y" then | |
| 904 | for o,p in pairs(zombies) do | |
| 905 | local coru = coroutine.wrap(function() | |
| 906 | if p:FindFirstChild('Torso') then
| |
| 907 | killz(p,"Head",nil,nil,false,false,false,true) | |
| 908 | else | |
| 909 | table.remove(zombies,o) | |
| 910 | end | |
| 911 | end) | |
| 912 | coru() | |
| 913 | wait() | |
| 914 | end | |
| 915 | for i,v in pairs(zombies) do | |
| 916 | table.remove(zombies,i) | |
| 917 | end | |
| 918 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end
| |
| 919 | notify("ZOMBIES TERMINATED",false)
| |
| 920 | end | |
| 921 | end) | |
| 922 | ||
| 923 | function nub() | |
| 924 | repeat wait() until player.Character and player.Character:FindFirstChild('Torso')
| |
| 925 | local me = player.Character | |
| 926 | local point = me.HumanoidRootPart | |
| 927 | local playergui = player.PlayerGui | |
| 928 | local rightshoulderz = me.Torso["Right Shoulder"]:Clone() | |
| 929 | local leftshoulderz = me.Torso["Left Shoulder"]:Clone() | |
| 930 | local torsojoint = me.HumanoidRootPart["RootJoint"]:Clone() | |
| 931 | local lefthipz = me.Torso["Left Hip"]:Clone() | |
| 932 | local righthipz = me.Torso["Right Hip"]:Clone() | |
| 933 | local mode = "kill" | |
| 934 | local lerpz = false | |
| 935 | local active = false | |
| 936 | local acting = false | |
| 937 | local hit = false | |
| 938 | local canClick = true | |
| 939 | local stabbing = false | |
| 940 | local grabbing = false | |
| 941 | local finishing = false | |
| 942 | local kyssing = false | |
| 943 | local canbackgroundmusic = true | |
| 944 | local cancolorfilter = true | |
| 945 | local spinboolean = false | |
| 946 | local grabbed = nil | |
| 947 | local doing = false | |
| 948 | local rightshoulder = nil | |
| 949 | local leftshoulder = nil | |
| 950 | local headweld = nil | |
| 951 | local knifeparts = {}
| |
| 952 | local usable = true | |
| 953 | finishnum = 1 | |
| 954 | ||
| 955 | function notify(msg,forever) | |
| 956 | local doit = coroutine.wrap(function() | |
| 957 | local gui = Instance.new('ScreenGui',playergui)
| |
| 958 | gui.Name = "Notification" | |
| 959 | local frame = Instance.new('Frame',gui)
| |
| 960 | frame.Position = UDim2.new(0,0,0,0) | |
| 961 | frame.Size = UDim2.new(1,0,0.2,0) | |
| 962 | frame.BackgroundTransparency = 1 | |
| 963 | local txt = Instance.new('TextLabel',frame)
| |
| 964 | txt.TextColor3 = Color3.new(255,255,255) | |
| 965 | txt.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 966 | txt.TextStrokeTransparency = 0 | |
| 967 | txt.BackgroundTransparency = 1 | |
| 968 | txt.Text = "" | |
| 969 | txt.Size = UDim2.new(1,0,0.3,0) | |
| 970 | txt.Position = UDim2.new(0,0,0.4,0) | |
| 971 | txt.TextScaled = true | |
| 972 | txt.Font = "Code" | |
| 973 | txt.TextXAlignment = "Center" | |
| 974 | local tap = Instance.new("Sound")
| |
| 975 | tap.Parent = gui | |
| 976 | tap.SoundId = "rbxassetid://147982968" | |
| 977 | tap.TimePosition = 0.1 | |
| 978 | local str = msg | |
| 979 | local len = string.len(str) | |
| 980 | for i=1,len do | |
| 981 | txt.Text = string.sub(str,1,i) | |
| 982 | pitche = math.random(20, 40)/10 | |
| 983 | tap.PlaybackSpeed = pitche | |
| 984 | tap:Play() | |
| 985 | wait(0.01) | |
| 986 | end | |
| 987 | if forever == false then | |
| 988 | wait(1) | |
| 989 | while txt.TextTransparency < 1 do | |
| 990 | txt.TextTransparency = txt.TextTransparency + 0.1 | |
| 991 | txt.TextStrokeTransparency = txt.TextStrokeTransparency + 0.1 | |
| 992 | wait(0.001) | |
| 993 | end | |
| 994 | gui:Destroy() | |
| 995 | end | |
| 996 | end) | |
| 997 | doit() | |
| 998 | end | |
| 999 | ||
| 1000 | wait(0.5) | |
| 1001 | notify("PRESS [Z] TO EQUIP KNIFE || Created by mustardfoot and Tollonis",true)
| |
| 1002 | local laugh = Instance.new('Sound',me.Head)
| |
| 1003 | laugh.SoundId = 'rbxassetid://378827985' | |
| 1004 | laugh.Name = "Psycho" | |
| 1005 | laugh.Volume = 5 | |
| 1006 | -- 1 - bitch ass knife | |
| 1007 | local obj1 = Instance.new("Model")
| |
| 1008 | obj1.Name = "bitch ass knife" | |
| 1009 | obj1.Parent = game.Workspace | |
| 1010 | ||
| 1011 | -- 2 - Grab | |
| 1012 | local obj2 = Instance.new("Part")
| |
| 1013 | obj2.CFrame = CFrame.new(Vector3.new(20.4525032, 6.14501333, -134.399979)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
| 1014 | obj2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1015 | obj2.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1016 | obj2.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1017 | obj2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1018 | obj2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1019 | obj2.Material = Enum.Material.Concrete | |
| 1020 | obj2.Size = Vector3.new(1, 0.25, 0.25) | |
| 1021 | obj2.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1022 | obj2.Anchored = true | |
| 1023 | obj2.BrickColor = BrickColor.new("Black")
| |
| 1024 | obj2.Friction = 0.30000001192093 | |
| 1025 | obj2.Shape = Enum.PartType.Cylinder | |
| 1026 | obj2.Name = "Grab" | |
| 1027 | obj2.Parent = obj1 | |
| 1028 | ||
| 1029 | -- 3 - handletopcap | |
| 1030 | local obj3 = Instance.new("Part")
| |
| 1031 | obj3.CFrame = CFrame.new(Vector3.new(19.9725456, 6.14502859, -134.399933)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1032 | obj3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1033 | obj3.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1034 | obj3.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1035 | obj3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1036 | obj3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1037 | obj3.Material = Enum.Material.Concrete | |
| 1038 | obj3.Size = Vector3.new(0.349999994, 0.349999994, 0.349999994) | |
| 1039 | obj3.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1040 | obj3.Anchored = true | |
| 1041 | obj3.BrickColor = BrickColor.new("Black")
| |
| 1042 | obj3.Friction = 0.30000001192093 | |
| 1043 | obj3.Shape = Enum.PartType.Ball | |
| 1044 | obj3.Name = "handletopcap" | |
| 1045 | obj3.Parent = obj1 | |
| 1046 | ||
| 1047 | -- 4 - handlebottomcap | |
| 1048 | local obj4 = Instance.new("Part")
| |
| 1049 | obj4.CFrame = CFrame.new(Vector3.new(20.9725285, 6.14502859, -134.399918)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1050 | obj4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1051 | obj4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1052 | obj4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1053 | obj4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1054 | obj4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1055 | obj4.Material = Enum.Material.Concrete | |
| 1056 | obj4.Size = Vector3.new(0.25, 0.25, 0.25) | |
| 1057 | obj4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1058 | obj4.Anchored = true | |
| 1059 | obj4.BrickColor = BrickColor.new("Black")
| |
| 1060 | obj4.Friction = 0.30000001192093 | |
| 1061 | obj4.Shape = Enum.PartType.Ball | |
| 1062 | obj4.Name = "handlebottomcap" | |
| 1063 | obj4.Parent = obj1 | |
| 1064 | ||
| 1065 | -- 5 - handleguardmid | |
| 1066 | local obj5 = Instance.new("Part")
| |
| 1067 | obj5.CFrame = CFrame.new(Vector3.new(19.9474983, 6.14502859, -134.399918)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1068 | obj5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1069 | obj5.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1070 | obj5.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1071 | obj5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1072 | obj5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1073 | obj5.Material = Enum.Material.Concrete | |
| 1074 | obj5.Size = Vector3.new(0.349999994, 0.349999994, 0.100000001) | |
| 1075 | obj5.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1076 | obj5.Anchored = true | |
| 1077 | obj5.BrickColor = BrickColor.new("Black")
| |
| 1078 | obj5.Friction = 0.30000001192093 | |
| 1079 | obj5.Shape = Enum.PartType.Block | |
| 1080 | obj5.Name = "handleguardmid" | |
| 1081 | obj5.Parent = obj1 | |
| 1082 | ||
| 1083 | -- 6 - handleguardcap1 | |
| 1084 | local obj6 = Instance.new("Part")
| |
| 1085 | obj6.CFrame = CFrame.new(Vector3.new(19.9474983, 6.32502794, -134.399918)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
| 1086 | obj6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1087 | obj6.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1088 | obj6.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1089 | obj6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1090 | obj6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1091 | obj6.Material = Enum.Material.Concrete | |
| 1092 | obj6.Size = Vector3.new(0.100000001, 0.349999994, 0.349999994) | |
| 1093 | obj6.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1094 | obj6.Anchored = true | |
| 1095 | obj6.BrickColor = BrickColor.new("Black")
| |
| 1096 | obj6.Friction = 0.30000001192093 | |
| 1097 | obj6.Shape = Enum.PartType.Cylinder | |
| 1098 | obj6.Name = "handleguardcap1" | |
| 1099 | obj6.Parent = obj1 | |
| 1100 | ||
| 1101 | -- 7 - handleguardcap2 | |
| 1102 | local obj7 = Instance.new("Part")
| |
| 1103 | obj7.CFrame = CFrame.new(Vector3.new(19.9474983, 5.97502899, -134.399918)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
| 1104 | obj7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1105 | obj7.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1106 | obj7.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1107 | obj7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1108 | obj7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1109 | obj7.Material = Enum.Material.Concrete | |
| 1110 | obj7.Size = Vector3.new(0.100000009, 0.349999994, 0.349999994) | |
| 1111 | obj7.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1112 | obj7.Anchored = true | |
| 1113 | obj7.BrickColor = BrickColor.new("Black")
| |
| 1114 | obj7.Friction = 0.30000001192093 | |
| 1115 | obj7.Shape = Enum.PartType.Cylinder | |
| 1116 | obj7.Name = "handleguardcap2" | |
| 1117 | obj7.Parent = obj1 | |
| 1118 | ||
| 1119 | -- 8 - big ass knife | |
| 1120 | local obj8 = Instance.new("Part")
| |
| 1121 | obj8.CFrame = CFrame.new(Vector3.new(18.4375095, 6.14502859, -134.401321)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1122 | obj8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1123 | obj8.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1124 | obj8.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1125 | obj8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1126 | obj8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1127 | obj8.Material = Enum.Material.Metal | |
| 1128 | obj8.Size = Vector3.new(0.0500000007, 0.280000001, 0.839999795) | |
| 1129 | obj8.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1130 | obj8.Anchored = true | |
| 1131 | obj8.BrickColor = BrickColor.new("Lily white")
| |
| 1132 | obj8.Friction = 0.30000001192093 | |
| 1133 | obj8.Shape = Enum.PartType.Block | |
| 1134 | obj8.Name = "big ass knife" | |
| 1135 | obj8.Parent = obj1 | |
| 1136 | ||
| 1137 | -- 9 - Mesh | |
| 1138 | local obj9 = Instance.new("BlockMesh")
| |
| 1139 | obj9.Scale = Vector3.new(0.5, 1, 1) | |
| 1140 | obj9.Parent = obj8 | |
| 1141 | ||
| 1142 | -- 10 - big ass knife | |
| 1143 | local obj10 = Instance.new("Part")
| |
| 1144 | obj10.CFrame = CFrame.new(Vector3.new(19.7425137, 6.14502859, -134.401321)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1145 | obj10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1146 | obj10.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1147 | obj10.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1148 | obj10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1149 | obj10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1150 | obj10.Material = Enum.Material.Metal | |
| 1151 | obj10.Size = Vector3.new(0.0500000007, 0.280000001, 0.289999962) | |
| 1152 | obj10.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1153 | obj10.Anchored = true | |
| 1154 | obj10.BrickColor = BrickColor.new("Lily white")
| |
| 1155 | obj10.Friction = 0.30000001192093 | |
| 1156 | obj10.Shape = Enum.PartType.Block | |
| 1157 | obj10.Name = "big ass knife" | |
| 1158 | obj10.Parent = obj1 | |
| 1159 | local knife = obj10 | |
| 1160 | ||
| 1161 | -- 11 - Mesh | |
| 1162 | local obj11 = Instance.new("BlockMesh")
| |
| 1163 | obj11.Scale = Vector3.new(0.5, 1, 1) | |
| 1164 | obj11.Parent = obj10 | |
| 1165 | ||
| 1166 | -- 12 - big ass knife | |
| 1167 | local obj12 = Instance.new("Part")
| |
| 1168 | obj12.CFrame = CFrame.new(Vector3.new(19.1075306, 6.08502865, -134.401321)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1169 | obj12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1170 | obj12.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1171 | obj12.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1172 | obj12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1173 | obj12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1174 | obj12.Material = Enum.Material.Metal | |
| 1175 | obj12.Size = Vector3.new(0.0500000007, 0.159999996, 0.979999959) | |
| 1176 | obj12.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1177 | obj12.Anchored = true | |
| 1178 | obj12.BrickColor = BrickColor.new("Lily white")
| |
| 1179 | obj12.Friction = 0.30000001192093 | |
| 1180 | obj12.Shape = Enum.PartType.Block | |
| 1181 | obj12.Name = "big ass knife" | |
| 1182 | obj12.Parent = obj1 | |
| 1183 | ||
| 1184 | -- 13 - Mesh | |
| 1185 | local obj13 = Instance.new("BlockMesh")
| |
| 1186 | obj13.Scale = Vector3.new(0.5, 1, 1) | |
| 1187 | obj13.Parent = obj12 | |
| 1188 | ||
| 1189 | -- 14 - serration | |
| 1190 | local obj14 = Instance.new("WedgePart")
| |
| 1191 | obj14.CFrame = CFrame.new(Vector3.new(19.4963322, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1192 | obj14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1193 | obj14.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1194 | obj14.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1195 | obj14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1196 | obj14.Material = Enum.Material.Metal | |
| 1197 | obj14.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1198 | obj14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1199 | obj14.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1200 | obj14.Anchored = true | |
| 1201 | obj14.BrickColor = BrickColor.new("Lily white")
| |
| 1202 | obj14.Friction = 0.30000001192093 | |
| 1203 | obj14.Name = "serration" | |
| 1204 | obj14.Parent = obj1 | |
| 1205 | ||
| 1206 | -- 15 - Mesh | |
| 1207 | local obj15 = Instance.new("BlockMesh")
| |
| 1208 | obj15.Scale = Vector3.new(0.5, 1, 1) | |
| 1209 | obj15.Parent = obj14 | |
| 1210 | ||
| 1211 | -- 16 - serration | |
| 1212 | local obj16 = Instance.new("WedgePart")
| |
| 1213 | obj16.CFrame = CFrame.new(Vector3.new(19.2763138, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1214 | obj16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1215 | obj16.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1216 | obj16.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1217 | obj16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1218 | obj16.Material = Enum.Material.Metal | |
| 1219 | obj16.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1220 | obj16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1221 | obj16.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1222 | obj16.Anchored = true | |
| 1223 | obj16.BrickColor = BrickColor.new("Lily white")
| |
| 1224 | obj16.Friction = 0.30000001192093 | |
| 1225 | obj16.Name = "serration" | |
| 1226 | obj16.Parent = obj1 | |
| 1227 | ||
| 1228 | -- 17 - Mesh | |
| 1229 | local obj17 = Instance.new("BlockMesh")
| |
| 1230 | obj17.Scale = Vector3.new(0.5, 1, 1) | |
| 1231 | obj17.Parent = obj16 | |
| 1232 | ||
| 1233 | -- 18 - serration | |
| 1234 | local obj18 = Instance.new("WedgePart")
| |
| 1235 | obj18.CFrame = CFrame.new(Vector3.new(19.3863068, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1236 | obj18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1237 | obj18.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1238 | obj18.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1239 | obj18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1240 | obj18.Material = Enum.Material.Metal | |
| 1241 | obj18.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1242 | obj18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1243 | obj18.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1244 | obj18.Anchored = true | |
| 1245 | obj18.BrickColor = BrickColor.new("Lily white")
| |
| 1246 | obj18.Friction = 0.30000001192093 | |
| 1247 | obj18.Name = "serration" | |
| 1248 | obj18.Parent = obj1 | |
| 1249 | ||
| 1250 | -- 19 - Mesh | |
| 1251 | local obj19 = Instance.new("BlockMesh")
| |
| 1252 | obj19.Scale = Vector3.new(0.5, 1, 1) | |
| 1253 | obj19.Parent = obj18 | |
| 1254 | ||
| 1255 | -- 20 - serration | |
| 1256 | local obj20 = Instance.new("WedgePart")
| |
| 1257 | obj20.CFrame = CFrame.new(Vector3.new(19.5963173, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1258 | obj20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1259 | obj20.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1260 | obj20.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1261 | obj20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1262 | obj20.Material = Enum.Material.Metal | |
| 1263 | obj20.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1264 | obj20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1265 | obj20.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1266 | obj20.Anchored = true | |
| 1267 | obj20.BrickColor = BrickColor.new("Lily white")
| |
| 1268 | obj20.Friction = 0.30000001192093 | |
| 1269 | obj20.Name = "serration" | |
| 1270 | obj20.Parent = obj1 | |
| 1271 | ||
| 1272 | -- 21 - Mesh | |
| 1273 | local obj21 = Instance.new("BlockMesh")
| |
| 1274 | obj21.Scale = Vector3.new(0.5, 1, 1) | |
| 1275 | obj21.Parent = obj20 | |
| 1276 | ||
| 1277 | -- 22 - serration | |
| 1278 | local obj22 = Instance.new("WedgePart")
| |
| 1279 | obj22.CFrame = CFrame.new(Vector3.new(19.1663074, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1280 | obj22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1281 | obj22.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1282 | obj22.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1283 | obj22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1284 | obj22.Material = Enum.Material.Metal | |
| 1285 | obj22.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1286 | obj22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1287 | obj22.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1288 | obj22.Anchored = true | |
| 1289 | obj22.BrickColor = BrickColor.new("Lily white")
| |
| 1290 | obj22.Friction = 0.30000001192093 | |
| 1291 | obj22.Name = "serration" | |
| 1292 | obj22.Parent = obj1 | |
| 1293 | ||
| 1294 | -- 23 - Mesh | |
| 1295 | local obj23 = Instance.new("BlockMesh")
| |
| 1296 | obj23.Scale = Vector3.new(0.5, 1, 1) | |
| 1297 | obj23.Parent = obj22 | |
| 1298 | ||
| 1299 | -- 24 - serration | |
| 1300 | local obj24 = Instance.new("WedgePart")
| |
| 1301 | obj24.CFrame = CFrame.new(Vector3.new(18.9663048, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1302 | obj24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1303 | obj24.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1304 | obj24.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1305 | obj24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1306 | obj24.Material = Enum.Material.Metal | |
| 1307 | obj24.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1308 | obj24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1309 | obj24.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1310 | obj24.Anchored = true | |
| 1311 | obj24.BrickColor = BrickColor.new("Lily white")
| |
| 1312 | obj24.Friction = 0.30000001192093 | |
| 1313 | obj24.Name = "serration" | |
| 1314 | obj24.Parent = obj1 | |
| 1315 | ||
| 1316 | -- 25 - Mesh | |
| 1317 | local obj25 = Instance.new("BlockMesh")
| |
| 1318 | obj25.Scale = Vector3.new(0.5, 1, 1) | |
| 1319 | obj25.Parent = obj24 | |
| 1320 | ||
| 1321 | -- 26 - serration | |
| 1322 | local obj26 = Instance.new("WedgePart")
| |
| 1323 | obj26.CFrame = CFrame.new(Vector3.new(18.8562984, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1324 | obj26.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1325 | obj26.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1326 | obj26.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1327 | obj26.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1328 | obj26.Material = Enum.Material.Metal | |
| 1329 | obj26.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1330 | obj26.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1331 | obj26.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1332 | obj26.Anchored = true | |
| 1333 | obj26.BrickColor = BrickColor.new("Lily white")
| |
| 1334 | obj26.Friction = 0.30000001192093 | |
| 1335 | obj26.Name = "serration" | |
| 1336 | obj26.Parent = obj1 | |
| 1337 | ||
| 1338 | -- 27 - Mesh | |
| 1339 | local obj27 = Instance.new("BlockMesh")
| |
| 1340 | obj27.Scale = Vector3.new(0.5, 1, 1) | |
| 1341 | obj27.Parent = obj26 | |
| 1342 | ||
| 1343 | -- 28 - serration | |
| 1344 | local obj28 = Instance.new("WedgePart")
| |
| 1345 | obj28.CFrame = CFrame.new(Vector3.new(19.0663071, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1346 | obj28.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1347 | obj28.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1348 | obj28.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1349 | obj28.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1350 | obj28.Material = Enum.Material.Metal | |
| 1351 | obj28.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1352 | obj28.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1353 | obj28.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1354 | obj28.Anchored = true | |
| 1355 | obj28.BrickColor = BrickColor.new("Lily white")
| |
| 1356 | obj28.Friction = 0.30000001192093 | |
| 1357 | obj28.Name = "serration" | |
| 1358 | obj28.Parent = obj1 | |
| 1359 | ||
| 1360 | -- 29 - Mesh | |
| 1361 | local obj29 = Instance.new("BlockMesh")
| |
| 1362 | obj29.Scale = Vector3.new(0.5, 1, 1) | |
| 1363 | obj29.Parent = obj28 | |
| 1364 | ||
| 1365 | -- 30 - knifetip1 | |
| 1366 | local obj30 = Instance.new("WedgePart")
| |
| 1367 | obj30.CFrame = CFrame.new(Vector3.new(18.0163059, 6.14381599, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1368 | obj30.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1369 | obj30.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1370 | obj30.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1371 | obj30.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1372 | obj30.Material = Enum.Material.Metal | |
| 1373 | obj30.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
| 1374 | obj30.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1375 | obj30.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1376 | obj30.Anchored = true | |
| 1377 | obj30.BrickColor = BrickColor.new("Lily white")
| |
| 1378 | obj30.Friction = 0.30000001192093 | |
| 1379 | obj30.Name = "knifetip1" | |
| 1380 | obj30.Parent = obj1 | |
| 1381 | ||
| 1382 | -- 31 - Mesh | |
| 1383 | local obj31 = Instance.new("BlockMesh")
| |
| 1384 | obj31.Scale = Vector3.new(0.5, 1, 1) | |
| 1385 | obj31.Parent = obj30 | |
| 1386 | ||
| 1387 | -- 32 - redstuff | |
| 1388 | local obj32 = Instance.new("Part")
| |
| 1389 | obj32.CFrame = CFrame.new(Vector3.new(19.9470005, 5.9749999, -134.399994)) * CFrame.Angles(-0, 0, -0) | |
| 1390 | obj32.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1391 | obj32.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1392 | obj32.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1393 | obj32.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1394 | obj32.Material = Enum.Material.SmoothPlastic | |
| 1395 | obj32.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1396 | obj32.Size = Vector3.new(0.0500000007, 0.360000014, 0.360000014) | |
| 1397 | obj32.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1398 | obj32.BrickColor = BrickColor.new("Institutional white")
| |
| 1399 | obj32.Friction = 0.30000001192093 | |
| 1400 | obj32.Shape = Enum.PartType.Cylinder | |
| 1401 | obj32.Name = "redstuff" | |
| 1402 | obj32.Anchored = true | |
| 1403 | obj32.Parent = obj1 | |
| 1404 | ||
| 1405 | ||
| 1406 | -- 33 - redstuff | |
| 1407 | local obj33 = Instance.new("Part")
| |
| 1408 | obj33.CFrame = CFrame.new(Vector3.new(18.9800053, 6.1400156, -134.404984)) * CFrame.Angles(-0, 0, -0) | |
| 1409 | obj33.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1410 | obj33.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1411 | obj33.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1412 | obj33.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1413 | obj33.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1414 | obj33.Material = Enum.Material.SmoothPlastic | |
| 1415 | obj33.Size = Vector3.new(1.81999993, 0.100000001, 0.0500000007) | |
| 1416 | obj33.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1417 | obj33.BrickColor = BrickColor.new("Institutional white")
| |
| 1418 | obj33.Friction = 0.30000001192093 | |
| 1419 | obj33.Shape = Enum.PartType.Block | |
| 1420 | obj33.Name = "redstuff" | |
| 1421 | obj33.Anchored = true | |
| 1422 | obj33.Parent = obj1 | |
| 1423 | ||
| 1424 | -- 34 - redstuff | |
| 1425 | local obj34 = Instance.new("Part")
| |
| 1426 | obj34.CFrame = CFrame.new(Vector3.new(19.9470005, 6.32499981, -134.399994)) * CFrame.Angles(-0, 0, -0) | |
| 1427 | obj34.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1428 | obj34.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1429 | obj34.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1430 | obj34.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1431 | obj34.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1432 | obj34.Size = Vector3.new(0.0500000007, 0.360000014, 0.360000014) | |
| 1433 | obj34.Material = Enum.Material.SmoothPlastic | |
| 1434 | obj34.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1435 | obj34.BrickColor = BrickColor.new("Institutional white")
| |
| 1436 | obj34.Friction = 0.30000001192093 | |
| 1437 | obj34.Shape = Enum.PartType.Cylinder | |
| 1438 | obj34.Name = "redstuff" | |
| 1439 | obj34.Anchored = true | |
| 1440 | obj34.Parent = obj1 | |
| 1441 | ||
| 1442 | -- 35 - redstuff | |
| 1443 | local obj35 = Instance.new("Part")
| |
| 1444 | obj35.CFrame = CFrame.new(Vector3.new(19.8830166, 6.14501476, -134.399963)) * CFrame.Angles(-0, 0, -0) | |
| 1445 | obj35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1446 | obj35.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1447 | obj35.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1448 | obj35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1449 | obj35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1450 | obj35.Size = Vector3.new(0.0500000007, 0.319999993, 0.319999993) | |
| 1451 | obj35.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1452 | obj35.BrickColor = BrickColor.new("Institutional white")
| |
| 1453 | obj35.Friction = 0.30000001192093 | |
| 1454 | obj35.Shape = Enum.PartType.Cylinder | |
| 1455 | obj35.Material = Enum.Material.SmoothPlastic | |
| 1456 | obj35.Name = "redstuff" | |
| 1457 | obj35.Anchored = true | |
| 1458 | obj35.Parent = obj1 | |
| 1459 | ||
| 1460 | -- 36 - redstuff | |
| 1461 | local obj36 = Instance.new("Part")
| |
| 1462 | obj36.CFrame = CFrame.new(Vector3.new(20.9430103, 6.14501476, -134.399963)) * CFrame.Angles(-0, 0, -0) | |
| 1463 | obj36.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1464 | obj36.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1465 | obj36.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1466 | obj36.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1467 | obj36.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1468 | obj36.Material = Enum.Material.SmoothPlastic | |
| 1469 | obj36.Size = Vector3.new(0.0500000007, 0.25999999, 0.25999999) | |
| 1470 | obj36.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1471 | obj36.BrickColor = BrickColor.new("Institutional white")
| |
| 1472 | obj36.Friction = 0.30000001192093 | |
| 1473 | obj36.Shape = Enum.PartType.Cylinder | |
| 1474 | obj36.Name = "redstuff" | |
| 1475 | obj36.Anchored = true | |
| 1476 | obj36.Parent = obj1 | |
| 1477 | ||
| 1478 | -- 37 - redstuff | |
| 1479 | local obj37 = Instance.new("WedgePart")
| |
| 1480 | obj37.CFrame = CFrame.new(Vector3.new(18.066288, 6.14381599, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
| 1481 | obj37.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1482 | obj37.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1483 | obj37.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1484 | obj37.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1485 | obj37.Material = Enum.Material.SmoothPlastic | |
| 1486 | obj37.Size = Vector3.new(0.0500000007, 0.0700000003, 0.0700000003) | |
| 1487 | obj37.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1488 | obj37.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1489 | obj37.Anchored = true | |
| 1490 | obj37.BrickColor = BrickColor.new("Institutional white")
| |
| 1491 | obj37.Friction = 0.30000001192093 | |
| 1492 | obj37.Name = "redstuff" | |
| 1493 | obj37.Anchored = true | |
| 1494 | obj37.Parent = obj1 | |
| 1495 | ||
| 1496 | -- 38 - redstuff | |
| 1497 | local obj38 = Instance.new("Part")
| |
| 1498 | obj38.CFrame = CFrame.new(Vector3.new(20.1230125, 6.14501476, -134.399979)) * CFrame.Angles(-0, 0, -0) | |
| 1499 | obj38.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1500 | obj38.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1501 | obj38.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1502 | obj38.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1503 | obj38.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1504 | obj38.Material = Enum.Material.SmoothPlastic | |
| 1505 | obj38.Size = Vector3.new(0.0500000007, 0.25999999, 0.25999999) | |
| 1506 | obj38.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1507 | obj38.BrickColor = BrickColor.new("Institutional white")
| |
| 1508 | obj38.Friction = 0.30000001192093 | |
| 1509 | obj38.Shape = Enum.PartType.Cylinder | |
| 1510 | obj38.Name = "redstuff" | |
| 1511 | obj38.Anchored = true | |
| 1512 | obj38.Parent = obj1 | |
| 1513 | ||
| 1514 | local function recurse(objnum) | |
| 1515 | table.insert(knifeparts,{objnum,objnum.Parent})
| |
| 1516 | for i,v in pairs(objnum:GetChildren()) do | |
| 1517 | recurse(v) | |
| 1518 | end | |
| 1519 | end | |
| 1520 | ||
| 1521 | recurse(obj1) | |
| 1522 | ||
| 1523 | local audio = Instance.new('Sound',knife)
| |
| 1524 | audio.Volume = 2 | |
| 1525 | ||
| 1526 | local audio2 = Instance.new('Sound',knife)
| |
| 1527 | audio2.Volume = 2 | |
| 1528 | ||
| 1529 | local holdpart = Instance.new("Part")
| |
| 1530 | holdpart.Parent = me | |
| 1531 | holdpart.Size = Vector3.new(0.4, 0.4, 0.2) | |
| 1532 | holdpart.Position = me.Head.Position + Vector3.new(0, 1, 0) | |
| 1533 | holdpart.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 1534 | ||
| 1535 | local previous = nil | |
| 1536 | for i,v in pairs(obj1:GetChildren()) do | |
| 1537 | if v:IsA('BasePart') then
| |
| 1538 | if previous then | |
| 1539 | local weld = Instance.new('Weld',v)
| |
| 1540 | weld.Part0 = v | |
| 1541 | weld.Part1 = previous | |
| 1542 | weld.C0 = v.CFrame:inverse() * previous.CFrame | |
| 1543 | previous.Anchored = false | |
| 1544 | previous.CanCollide = false | |
| 1545 | local vee = v | |
| 1546 | weld.AncestryChanged:connect(function(mez,par) | |
| 1547 | wait() | |
| 1548 | weld.Parent = vee | |
| 1549 | end) | |
| 1550 | end | |
| 1551 | previous = v | |
| 1552 | end | |
| 1553 | end | |
| 1554 | previous.Anchored = false | |
| 1555 | previous.CanCollide = false | |
| 1556 | ||
| 1557 | local holdpartweld = Instance.new("Weld", me.Torso)
| |
| 1558 | holdpartweld.Part0 = me.Torso | |
| 1559 | holdpartweld.Part1 = holdpart | |
| 1560 | holdpartweld.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1, -0.8, 0.15) | |
| 1561 | ||
| 1562 | holdpartweld.AncestryChanged:connect(function(mez,par) | |
| 1563 | if par ~= me.Torso then | |
| 1564 | wait() | |
| 1565 | holdpartweld.Parent = me.Torso | |
| 1566 | end | |
| 1567 | end) | |
| 1568 | ||
| 1569 | local knifeweld = Instance.new('Weld',me.Torso)
| |
| 1570 | knifeweld.Part0 = me.Torso | |
| 1571 | knifeweld.Part1 = obj2 | |
| 1572 | knifeweld.C1 = CFrame.Angles(0,math.rad(90),0) * CFrame.new(1, 0.8, 0.55) | |
| 1573 | knifeweld.AncestryChanged:connect(function(mez,par) | |
| 1574 | if par ~= me.Torso then | |
| 1575 | wait() | |
| 1576 | knifeweld.Parent = me.Torso | |
| 1577 | end | |
| 1578 | end) | |
| 1579 | local ScreenGui = Instance.new("ScreenGui")
| |
| 1580 | local CustomizeGui = Instance.new("Frame")
| |
| 1581 | local Customize = Instance.new("TextLabel")
| |
| 1582 | local ClosestColor = Instance.new("TextLabel")
| |
| 1583 | local Line = Instance.new("TextLabel")
| |
| 1584 | local Color = Instance.new("ImageLabel")
| |
| 1585 | local Close = Instance.new("TextButton")
| |
| 1586 | local RedHue = Instance.new("TextLabel")
| |
| 1587 | local GreenHue = Instance.new("TextLabel")
| |
| 1588 | local RedInput = Instance.new("TextBox")
| |
| 1589 | local BlueHue = Instance.new("TextLabel")
| |
| 1590 | local GreenInput = Instance.new("TextBox")
| |
| 1591 | local TransInput = Instance.new("TextBox")
| |
| 1592 | local BlueInput = Instance.new("TextBox")
| |
| 1593 | local Message = Instance.new("TextLabel")
| |
| 1594 | local Message2 = Instance.new("TextLabel")
| |
| 1595 | local TrailTransparency = Instance.new("TextLabel")
| |
| 1596 | local TrailInput = Instance.new("TextBox")
| |
| 1597 | local MusicOption = Instance.new("TextButton")
| |
| 1598 | local ScreenOption = Instance.new("TextButton")
| |
| 1599 | local ScreenOptionTxt = Instance.new("TextLabel")
| |
| 1600 | local MusicOptionTxt = Instance.new("TextLabel")
| |
| 1601 | ||
| 1602 | -- Properties | |
| 1603 | ||
| 1604 | ScreenGui.Parent = playergui | |
| 1605 | ||
| 1606 | CustomizeGui.Name = "CustomizeGui" | |
| 1607 | CustomizeGui.Parent = ScreenGui | |
| 1608 | CustomizeGui.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118) | |
| 1609 | CustomizeGui.BackgroundTransparency = 0.5 | |
| 1610 | CustomizeGui.BorderColor3 = Color3.new(0, 0, 0) | |
| 1611 | CustomizeGui.BorderSizePixel = 2 | |
| 1612 | CustomizeGui.Position = UDim2.new(0, 0, 0.5, 0) | |
| 1613 | CustomizeGui.Size = UDim2.new(0.449999988, 0, 0.449999988, 0) | |
| 1614 | ||
| 1615 | Customize.Name = "Customize" | |
| 1616 | Customize.Parent = CustomizeGui | |
| 1617 | Customize.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118) | |
| 1618 | Customize.BackgroundTransparency = 0.75 | |
| 1619 | Customize.BorderSizePixel = 0 | |
| 1620 | Customize.Size = UDim2.new(1, 0, 0.200000003, 0) | |
| 1621 | Customize.FontSize = Enum.FontSize.Size28 | |
| 1622 | Customize.Text = "ACCENT COLOR CUSTOMIZATION" | |
| 1623 | Customize.TextColor3 = Color3.new(1, 1, 1) | |
| 1624 | Customize.TextScaled = true | |
| 1625 | Customize.TextSize = 25 | |
| 1626 | Customize.TextStrokeTransparency = 0.5 | |
| 1627 | Customize.TextWrapped = true | |
| 1628 | ||
| 1629 | ClosestColor.Name = "ClosestColor" | |
| 1630 | ClosestColor.Parent = CustomizeGui | |
| 1631 | ClosestColor.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1632 | ClosestColor.BackgroundTransparency = 1 | |
| 1633 | ClosestColor.Position = UDim2.new(0, 0, 0.850000024, 0) | |
| 1634 | ClosestColor.Size = UDim2.new(1, 0, 0.150000006, 0) | |
| 1635 | ClosestColor.Font = Enum.Font.SourceSansLight | |
| 1636 | ClosestColor.FontSize = Enum.FontSize.Size32 | |
| 1637 | ClosestColor.Text = "Your color is closest to Institutional White" | |
| 1638 | ClosestColor.TextColor3 = Color3.new(1, 1, 1) | |
| 1639 | ClosestColor.TextSize = 30 | |
| 1640 | ClosestColor.TextStrokeTransparency = 0.5 | |
| 1641 | ||
| 1642 | Line.Name = "Line" | |
| 1643 | Line.Parent = CustomizeGui | |
| 1644 | Line.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
| 1645 | Line.BackgroundTransparency = 0.5 | |
| 1646 | Line.BorderColor3 = Color3.new(0, 0, 0) | |
| 1647 | Line.BorderSizePixel = 0 | |
| 1648 | Line.Position = UDim2.new(0, 0, 0.200000003, 0) | |
| 1649 | Line.Size = UDim2.new(1, 0, 0.0299999993, 0) | |
| 1650 | Line.Font = Enum.Font.SourceSans | |
| 1651 | Line.FontSize = Enum.FontSize.Size14 | |
| 1652 | Line.Text = " " | |
| 1653 | Line.TextSize = 14 | |
| 1654 | ||
| 1655 | Color.Name = "Color" | |
| 1656 | Color.Parent = CustomizeGui | |
| 1657 | Color.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1658 | Color.BorderSizePixel = 0 | |
| 1659 | Color.Position = UDim2.new(0.699999988, 0, 0.419999987, 0) | |
| 1660 | Color.Size = UDim2.new(0.300000012, 0, 0.300000012, 0) | |
| 1661 | Color.SizeConstraint = Enum.SizeConstraint.RelativeYY | |
| 1662 | ||
| 1663 | MusicOption.Parent = CustomizeGui | |
| 1664 | MusicOption.Name = "MusicOption" | |
| 1665 | MusicOption.BackgroundColor3 = Color3.new(0, 1, 0) | |
| 1666 | MusicOption.BorderSizePixel = 1 | |
| 1667 | MusicOption.Position = UDim2.new(0.01, 0, -0.12, 0) | |
| 1668 | MusicOption.Size = UDim2.new(0.05, 0, 0.1, 0) | |
| 1669 | MusicOption.Text = "" | |
| 1670 | MusicOption.BackgroundTransparency = 0.5 | |
| 1671 | ||
| 1672 | ScreenOption.Parent = CustomizeGui | |
| 1673 | ScreenOption.Name = "ScreenOption" | |
| 1674 | ScreenOption.BackgroundColor3 = Color3.new(0, 1, 0) | |
| 1675 | ScreenOption.BorderSizePixel = 1 | |
| 1676 | ScreenOption.Position = UDim2.new(0.01, 0, -0.23, 0) | |
| 1677 | ScreenOption.Size = UDim2.new(0.05, 0, 0.1, 0) | |
| 1678 | ScreenOption.Text = "" | |
| 1679 | ScreenOption.BackgroundTransparency = 0.5 | |
| 1680 | ||
| 1681 | ScreenOptionTxt.Name = "ScreenOptionTxt" | |
| 1682 | ScreenOptionTxt.Parent = CustomizeGui | |
| 1683 | ScreenOptionTxt.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1684 | ScreenOptionTxt.BackgroundTransparency = 1 | |
| 1685 | ScreenOptionTxt.Position = UDim2.new(0.07, 0, -0.23, 0) | |
| 1686 | ScreenOptionTxt.Size = UDim2.new(1, 0, 0.07, 0) | |
| 1687 | ScreenOptionTxt.Font = Enum.Font.SourceSans | |
| 1688 | ScreenOptionTxt.FontSize = Enum.FontSize.Size24 | |
| 1689 | ScreenOptionTxt.Text = "Psychopath Red Filter" | |
| 1690 | ScreenOptionTxt.TextColor3 = Color3.new(1, 1, 1) | |
| 1691 | ScreenOptionTxt.TextScaled = true | |
| 1692 | ScreenOptionTxt.TextSize = 20 | |
| 1693 | ScreenOptionTxt.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 1694 | ScreenOptionTxt.TextStrokeTransparency = 0.5 | |
| 1695 | ScreenOptionTxt.TextWrapped = true | |
| 1696 | ScreenOptionTxt.TextXAlignment = "Left" | |
| 1697 | ||
| 1698 | MusicOptionTxt.Name = "MusicOptionTxt" | |
| 1699 | MusicOptionTxt.Parent = CustomizeGui | |
| 1700 | MusicOptionTxt.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1701 | MusicOptionTxt.BackgroundTransparency = 1 | |
| 1702 | MusicOptionTxt.Position = UDim2.new(0.07, 0, -0.12, 0) | |
| 1703 | MusicOptionTxt.Size = UDim2.new(1, 0, 0.07, 0) | |
| 1704 | MusicOptionTxt.Font = Enum.Font.SourceSans | |
| 1705 | MusicOptionTxt.FontSize = Enum.FontSize.Size24 | |
| 1706 | MusicOptionTxt.Text = "Psychopath Background Music" | |
| 1707 | MusicOptionTxt.TextColor3 = Color3.new(1, 1, 1) | |
| 1708 | MusicOptionTxt.TextScaled = true | |
| 1709 | MusicOptionTxt.TextSize = 20 | |
| 1710 | MusicOptionTxt.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 1711 | MusicOptionTxt.TextStrokeTransparency = 0.5 | |
| 1712 | MusicOptionTxt.TextWrapped = true | |
| 1713 | MusicOptionTxt.TextXAlignment = "Left" | |
| 1714 | ||
| 1715 | Close.Name = "Close" | |
| 1716 | Close.Parent = CustomizeGui | |
| 1717 | Close.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118) | |
| 1718 | Close.BackgroundTransparency = 0.5 | |
| 1719 | Close.BorderColor3 = Color3.new(0, 0, 0) | |
| 1720 | Close.BorderSizePixel = 2 | |
| 1721 | Close.Position = UDim2.new(1.005, 0, 0, 0) | |
| 1722 | Close.Size = UDim2.new(0.100000001, 0, 0.2, 0) | |
| 1723 | Close.Font = Enum.Font.SourceSans | |
| 1724 | Close.FontSize = Enum.FontSize.Size14 | |
| 1725 | Close.Text = "X" | |
| 1726 | Close.TextColor3 = Color3.new(1, 1, 1) | |
| 1727 | Close.TextScaled = true | |
| 1728 | Close.TextSize = 14 | |
| 1729 | Close.TextStrokeTransparency = 0 | |
| 1730 | Close.TextWrapped = true | |
| 1731 | ||
| 1732 | RedHue.Name = "RedHue" | |
| 1733 | RedHue.Parent = CustomizeGui | |
| 1734 | RedHue.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1735 | RedHue.BackgroundTransparency = 1 | |
| 1736 | RedHue.Position = UDim2.new(0.100000001, 0, 0.400000006, 0) | |
| 1737 | RedHue.Size = UDim2.new(0.300000012, 0, 0.100000001, 0) | |
| 1738 | RedHue.Font = Enum.Font.SourceSans | |
| 1739 | RedHue.FontSize = Enum.FontSize.Size24 | |
| 1740 | RedHue.Text = "RED Hue Value: " | |
| 1741 | RedHue.TextColor3 = Color3.new(1, 1, 1) | |
| 1742 | RedHue.TextScaled = true | |
| 1743 | RedHue.TextSize = 20 | |
| 1744 | RedHue.TextStrokeColor3 = Color3.new(1, 0, 0) | |
| 1745 | RedHue.TextStrokeTransparency = 0.75 | |
| 1746 | RedHue.TextWrapped = true | |
| 1747 | ||
| 1748 | GreenHue.Name = "GreenHue" | |
| 1749 | GreenHue.Parent = CustomizeGui | |
| 1750 | GreenHue.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1751 | GreenHue.BackgroundTransparency = 1 | |
| 1752 | GreenHue.Position = UDim2.new(0.100000001, 0, 0.5, 0) | |
| 1753 | GreenHue.Size = UDim2.new(0.300000012, 0, 0.100000001, 0) | |
| 1754 | GreenHue.Font = Enum.Font.SourceSans | |
| 1755 | GreenHue.FontSize = Enum.FontSize.Size24 | |
| 1756 | GreenHue.Text = "GREEN Hue Value:" | |
| 1757 | GreenHue.TextColor3 = Color3.new(1, 1, 1) | |
| 1758 | GreenHue.TextScaled = true | |
| 1759 | GreenHue.TextSize = 20 | |
| 1760 | GreenHue.TextStrokeColor3 = Color3.new(0, 1, 0) | |
| 1761 | GreenHue.TextStrokeTransparency = 0.75 | |
| 1762 | GreenHue.TextWrapped = true | |
| 1763 | ||
| 1764 | RedInput.Name = "RedInput" | |
| 1765 | RedInput.Parent = CustomizeGui | |
| 1766 | RedInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
| 1767 | RedInput.BackgroundTransparency = 0.5 | |
| 1768 | RedInput.BorderSizePixel = 0 | |
| 1769 | RedInput.Position = UDim2.new(0.419999987, 0, 0.425000007, 0) | |
| 1770 | RedInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0) | |
| 1771 | RedInput.Font = Enum.Font.SourceSans | |
| 1772 | RedInput.FontSize = Enum.FontSize.Size14 | |
| 1773 | RedInput.Text = "255" | |
| 1774 | RedInput.TextColor3 = Color3.new(1, 1, 1) | |
| 1775 | RedInput.TextSize = 14 | |
| 1776 | RedInput.TextStrokeTransparency = 0 | |
| 1777 | ||
| 1778 | BlueHue.Name = "BlueHue" | |
| 1779 | BlueHue.Parent = CustomizeGui | |
| 1780 | BlueHue.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1781 | BlueHue.BackgroundTransparency = 1 | |
| 1782 | BlueHue.Position = UDim2.new(0.100000001, 0, 0.600000024, 0) | |
| 1783 | BlueHue.Size = UDim2.new(0.300000012, 0, 0.100000001, 0) | |
| 1784 | BlueHue.Font = Enum.Font.SourceSans | |
| 1785 | BlueHue.FontSize = Enum.FontSize.Size24 | |
| 1786 | BlueHue.Text = "BLUE Hue Value:" | |
| 1787 | BlueHue.TextColor3 = Color3.new(1, 1, 1) | |
| 1788 | BlueHue.TextScaled = true | |
| 1789 | BlueHue.TextSize = 20 | |
| 1790 | BlueHue.TextStrokeColor3 = Color3.new(0, 0, 1) | |
| 1791 | BlueHue.TextStrokeTransparency = 0.75 | |
| 1792 | BlueHue.TextWrapped = true | |
| 1793 | ||
| 1794 | TrailTransparency.Name = "TrailTransparency" | |
| 1795 | TrailTransparency.Parent = CustomizeGui | |
| 1796 | TrailTransparency.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1797 | TrailTransparency.BackgroundTransparency = 1 | |
| 1798 | TrailTransparency.Position = UDim2.new(0.090000001, 0, 0.700000024, 0) | |
| 1799 | TrailTransparency.Size = UDim2.new(0.310000012, 0, 0.100000001, 0) | |
| 1800 | TrailTransparency.Font = Enum.Font.SourceSans | |
| 1801 | TrailTransparency.FontSize = Enum.FontSize.Size24 | |
| 1802 | TrailTransparency.Text = "Trail Transparency:" | |
| 1803 | TrailTransparency.TextColor3 = Color3.new(1, 1, 1) | |
| 1804 | TrailTransparency.TextScaled = true | |
| 1805 | TrailTransparency.TextSize = 20 | |
| 1806 | TrailTransparency.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 1807 | TrailTransparency.TextWrapped = true | |
| 1808 | ||
| 1809 | GreenInput.Name = "GreenInput" | |
| 1810 | GreenInput.Parent = CustomizeGui | |
| 1811 | GreenInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
| 1812 | GreenInput.BackgroundTransparency = 0.5 | |
| 1813 | GreenInput.BorderSizePixel = 0 | |
| 1814 | GreenInput.Position = UDim2.new(0.419999987, 0, 0.524999976, 0) | |
| 1815 | GreenInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0) | |
| 1816 | GreenInput.Font = Enum.Font.SourceSans | |
| 1817 | GreenInput.FontSize = Enum.FontSize.Size14 | |
| 1818 | GreenInput.Text = "255" | |
| 1819 | GreenInput.TextColor3 = Color3.new(1, 1, 1) | |
| 1820 | GreenInput.TextSize = 14 | |
| 1821 | GreenInput.TextStrokeTransparency = 0 | |
| 1822 | ||
| 1823 | TransInput.Name = "TransInput" | |
| 1824 | TransInput.Parent = CustomizeGui | |
| 1825 | TransInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
| 1826 | TransInput.BackgroundTransparency = 0.5 | |
| 1827 | TransInput.BorderSizePixel = 0 | |
| 1828 | TransInput.Position = UDim2.new(0.419999987, 0, 0.725000024, 0) | |
| 1829 | TransInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0) | |
| 1830 | TransInput.Font = Enum.Font.SourceSans | |
| 1831 | TransInput.FontSize = Enum.FontSize.Size14 | |
| 1832 | TransInput.Text = "50" | |
| 1833 | TransInput.TextColor3 = Color3.new(1, 1, 1) | |
| 1834 | TransInput.TextSize = 14 | |
| 1835 | TransInput.TextStrokeTransparency = 0 | |
| 1836 | ||
| 1837 | BlueInput.Name = "BlueInput" | |
| 1838 | BlueInput.Parent = CustomizeGui | |
| 1839 | BlueInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
| 1840 | BlueInput.BackgroundTransparency = 0.5 | |
| 1841 | BlueInput.BorderSizePixel = 0 | |
| 1842 | BlueInput.Position = UDim2.new(0.419999987, 0, 0.625, 0) | |
| 1843 | BlueInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0) | |
| 1844 | BlueInput.Font = Enum.Font.SourceSans | |
| 1845 | BlueInput.FontSize = Enum.FontSize.Size14 | |
| 1846 | BlueInput.Text = "255" | |
| 1847 | BlueInput.TextColor3 = Color3.new(1, 1, 1) | |
| 1848 | BlueInput.TextSize = 14 | |
| 1849 | BlueInput.TextStrokeTransparency = 0 | |
| 1850 | ||
| 1851 | Message.Name = "Message" | |
| 1852 | Message.Parent = CustomizeGui | |
| 1853 | Message.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1854 | Message.BackgroundTransparency = 1 | |
| 1855 | Message.Position = UDim2.new(0, 0, 0.2500004, 0) | |
| 1856 | Message.Size = UDim2.new(1, 0, 0.100000006, 0) | |
| 1857 | Message.Font = Enum.Font.SourceSans | |
| 1858 | Message.FontSize = Enum.FontSize.Size18 | |
| 1859 | Message.Text = "|| Inputs must be values ||" | |
| 1860 | Message.TextColor3 = Color3.new(1, 1, 1) | |
| 1861 | Message.TextScaled = true | |
| 1862 | Message.TextSize = 15 | |
| 1863 | Message.TextStrokeTransparency = 0.75 | |
| 1864 | Message.TextWrapped = true | |
| 1865 | ||
| 1866 | local attun = Instance.new("Attachment", knife)
| |
| 1867 | attun.Position = Vector3.new(0, 0.1, -1.75) | |
| 1868 | local atdos = Instance.new("Attachment", knife)
| |
| 1869 | atdos.Position = Vector3.new(0, -0.1, 0.5) | |
| 1870 | local trail = Instance.new("Trail", knife)
| |
| 1871 | trail.LightEmission = 0.5 | |
| 1872 | trail.Attachment0 = attun | |
| 1873 | trail.Attachment1 = atdos | |
| 1874 | trail.Lifetime = 0.175 | |
| 1875 | trail.MinLength = 0 | |
| 1876 | trail.Enabled = false | |
| 1877 | ||
| 1878 | function updatez() | |
| 1879 | local rc = tonumber(RedInput.Text) | |
| 1880 | local gc = tonumber(GreenInput.Text) | |
| 1881 | local bc = tonumber(BlueInput.Text) | |
| 1882 | local tcupd = tonumber(TransInput.Text) | |
| 1883 | if rc == nil then | |
| 1884 | rc = 0 | |
| 1885 | end | |
| 1886 | if gc == nil then | |
| 1887 | gc = 0 | |
| 1888 | end | |
| 1889 | if bc == nil then | |
| 1890 | bc = 0 | |
| 1891 | end | |
| 1892 | if tcupd == nil then | |
| 1893 | tcupd = 0 | |
| 1894 | end | |
| 1895 | local tc = tcupd/100 | |
| 1896 | Color.BackgroundColor3 = Color3.fromRGB(rc,gc,bc) | |
| 1897 | ClosestColor.Text = "Your color is closest to "..tostring(BrickColor.new(Color3.fromRGB(rc,gc,bc))) | |
| 1898 | obj32.Color = Color3.fromRGB(rc,gc,bc) | |
| 1899 | obj33.Color = Color3.fromRGB(rc,gc,bc) | |
| 1900 | obj34.Color = Color3.fromRGB(rc,gc,bc) | |
| 1901 | obj35.Color = Color3.fromRGB(rc,gc,bc) | |
| 1902 | obj36.Color = Color3.fromRGB(rc,gc,bc) | |
| 1903 | obj37.Color = Color3.fromRGB(rc,gc,bc) | |
| 1904 | obj38.Color = Color3.fromRGB(rc,gc,bc) | |
| 1905 | trail.Color = ColorSequence.new(Color3.fromRGB(rc, gc, bc)) | |
| 1906 | trail.Transparency = NumberSequence.new(tc) | |
| 1907 | TrailTransparency.TextStrokeTransparency = tc | |
| 1908 | end | |
| 1909 | ||
| 1910 | RedInput.Changed:connect(function(val) | |
| 1911 | if val == "Text" and tonumber(RedInput.Text) then | |
| 1912 | RedInput.Text = tostring(tonumber(RedInput.Text)) | |
| 1913 | if tonumber(RedInput.Text) > 255 then | |
| 1914 | RedInput.Text = '255' | |
| 1915 | end | |
| 1916 | elseif val == "Text" then | |
| 1917 | RedInput.Text = "" | |
| 1918 | end | |
| 1919 | updatez() | |
| 1920 | end) | |
| 1921 | GreenInput.Changed:connect(function(val) | |
| 1922 | if val == "Text" and tonumber(GreenInput.Text) then | |
| 1923 | GreenInput.Text = tostring(tonumber(GreenInput.Text)) | |
| 1924 | if tonumber(GreenInput.Text) > 255 then | |
| 1925 | GreenInput.Text = '255' | |
| 1926 | end | |
| 1927 | elseif val == "Text" then | |
| 1928 | GreenInput.Text = "" | |
| 1929 | end | |
| 1930 | updatez() | |
| 1931 | end) | |
| 1932 | BlueInput.Changed:connect(function(val) | |
| 1933 | if val == "Text" and tonumber(BlueInput.Text) then | |
| 1934 | BlueInput.Text = tostring(tonumber(BlueInput.Text)) | |
| 1935 | if tonumber(BlueInput.Text) > 255 then | |
| 1936 | BlueInput.Text = '255' | |
| 1937 | end | |
| 1938 | elseif val == "Text" then | |
| 1939 | BlueInput.Text = "" | |
| 1940 | end | |
| 1941 | updatez() | |
| 1942 | end) | |
| 1943 | TransInput.Changed:connect(function(val) | |
| 1944 | if val == "Text" and tonumber(TransInput.Text) then | |
| 1945 | TransInput.Text = tostring(tonumber(TransInput.Text)) | |
| 1946 | if tonumber(TransInput.Text) > 100 then | |
| 1947 | TransInput.Text = '100' | |
| 1948 | end | |
| 1949 | elseif val == "Text" then | |
| 1950 | TransInput.Text = "" | |
| 1951 | end | |
| 1952 | updatez() | |
| 1953 | end) | |
| 1954 | ||
| 1955 | Close.MouseButton1Click:connect(function() | |
| 1956 | if lerpz == false then | |
| 1957 | lerpz = true | |
| 1958 | if Close.Text ~= "+" then | |
| 1959 | CustomizeGui:TweenPosition(UDim2.new(-0.45,0,0.5,0,Enum.EasingDirection.Out,Enum.EasingStyle.Quint,2)) | |
| 1960 | for i=1,10 do | |
| 1961 | Close.TextTransparency = i/10 | |
| 1962 | Close.TextStrokeTransparency = i/10 | |
| 1963 | wait(0.01) | |
| 1964 | end | |
| 1965 | Close.Text = "+" | |
| 1966 | for i=1,10 do | |
| 1967 | Close.TextTransparency = (10-i+1)/10 | |
| 1968 | Close.TextStrokeTransparency = (10-i+1)/10 | |
| 1969 | wait(0.01) | |
| 1970 | end | |
| 1971 | lerpz = false | |
| 1972 | else | |
| 1973 | CustomizeGui:TweenPosition(UDim2.new(0,0,0.5,0,Enum.EasingDirection.Out,Enum.EasingStyle.Quint,2)) | |
| 1974 | for i=1,10 do | |
| 1975 | Close.TextTransparency = i/10 | |
| 1976 | Close.TextStrokeTransparency = i/10 | |
| 1977 | wait(0.01) | |
| 1978 | end | |
| 1979 | Close.Text = "X" | |
| 1980 | for i=1,10 do | |
| 1981 | Close.TextTransparency = (10-i+1)/10 | |
| 1982 | Close.TextStrokeTransparency = (10-i+1)/10 | |
| 1983 | wait(0.01) | |
| 1984 | end | |
| 1985 | lerpz = false | |
| 1986 | end | |
| 1987 | end | |
| 1988 | end) | |
| 1989 | ||
| 1990 | MusicOption.MouseButton1Click:connect(function() | |
| 1991 | if canbackgroundmusic == true then | |
| 1992 | canbackgroundmusic = false | |
| 1993 | MusicOption.BackgroundColor3 = Color3.new(1, 0, 0) | |
| 1994 | else | |
| 1995 | canbackgroundmusic = true | |
| 1996 | MusicOption.BackgroundColor3 = Color3.new(0, 1, 0) | |
| 1997 | end | |
| 1998 | end) | |
| 1999 | ||
| 2000 | ScreenOption.MouseButton1Click:connect(function() | |
| 2001 | if cancolorfilter == true then | |
| 2002 | cancolorfilter = false | |
| 2003 | ScreenOption.BackgroundColor3 = Color3.new(1, 0, 0) | |
| 2004 | else | |
| 2005 | cancolorfilter = true | |
| 2006 | ScreenOption.BackgroundColor3 = Color3.new(0, 1, 0) | |
| 2007 | end | |
| 2008 | end) | |
| 2009 | ||
| 2010 | function equip() | |
| 2011 | local doit = coroutine.wrap(function() | |
| 2012 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') then
| |
| 2013 | acting = true | |
| 2014 | local arm = me["Right Arm"] | |
| 2015 | local arm2 = me["Left Arm"] | |
| 2016 | local tors = me.Torso | |
| 2017 | local weld = Instance.new('Weld',arm)
| |
| 2018 | weld.Part0 = arm | |
| 2019 | weld.Part1 = tors | |
| 2020 | weld.C0 = CFrame.new(-1.5,0,0) | |
| 2021 | local weld2 = Instance.new("Weld", arm2)
| |
| 2022 | weld2.Part0 = arm2 | |
| 2023 | weld2.Part1 = tors | |
| 2024 | weld2.C0 = CFrame.new(1.5, 0, 0) | |
| 2025 | wait(0.001) | |
| 2026 | for i = 0,1,0.1 do | |
| 2027 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end
| |
| 2028 | weld.C0 = weld.C0:lerp(CFrame.new(-0.2,0.2,-0.5)*CFrame.Angles(0,-3.1,0.9),i) | |
| 2029 | weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0.6, 0) * CFrame.Angles(0,0,0.5),i) | |
| 2030 | wait(0.001) | |
| 2031 | end | |
| 2032 | wait(0.15) | |
| 2033 | trail.Enabled = true | |
| 2034 | for i = 0,1,0.1 do | |
| 2035 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end
| |
| 2036 | weld.C0 = weld.C0:lerp(CFrame.new(-0.5,2,0)*CFrame.Angles(0,0,-1.55),i) | |
| 2037 | weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0, 0), i) | |
| 2038 | wait(0.001) | |
| 2039 | end | |
| 2040 | trail.Enabled = false | |
| 2041 | wait(0.2) | |
| 2042 | for i = 0,1,0.1 do | |
| 2043 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end
| |
| 2044 | weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 2045 | wait(0.001) | |
| 2046 | end | |
| 2047 | weld:Destroy() | |
| 2048 | weld2:Remove() | |
| 2049 | if tors ~= nil then | |
| 2050 | rightshoulderz:Clone().Parent = me.Torso | |
| 2051 | leftshoulderz:Clone().Parent = me.Torso | |
| 2052 | end | |
| 2053 | end | |
| 2054 | acting = false | |
| 2055 | end) | |
| 2056 | doit() | |
| 2057 | end | |
| 2058 | ||
| 2059 | function kysnigga() | |
| 2060 | if kyssing == true then return end | |
| 2061 | kyssing = true | |
| 2062 | acting = true | |
| 2063 | decearingTHING = math.random(1, 100) | |
| 2064 | if decearingTHING == 4 then | |
| 2065 | decearingEGG = Instance.new("Sound", me.Torso)
| |
| 2066 | decearingEGG.SoundId = "rbxassetid://138084557" | |
| 2067 | decearingEGG.PlaybackSpeed = math.random(10, 12) / 10 | |
| 2068 | decearingEGG.TimePosition = 0.2 | |
| 2069 | decearingEGG:Play() | |
| 2070 | end | |
| 2071 | me.Humanoid.WalkSpeed = 0 | |
| 2072 | me.Humanoid.JumpPower = 0 | |
| 2073 | ||
| 2074 | local rightarm = Instance.new("Weld", me.Torso)
| |
| 2075 | rightarm.Part0 = me.Torso | |
| 2076 | rightarm.Part1 = me["Right Arm"] | |
| 2077 | rightarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(1.5, 0, 0) | |
| 2078 | ||
| 2079 | local leftarm = Instance.new("Weld", me.Torso)
| |
| 2080 | leftarm.Part0 = me.Torso | |
| 2081 | leftarm.Part1 = me["Left Arm"] | |
| 2082 | leftarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0) | |
| 2083 | ||
| 2084 | local tors = Instance.new("Weld", me.HumanoidRootPart)
| |
| 2085 | tors.Part0 = me.HumanoidRootPart | |
| 2086 | tors.Part1 = me.Torso | |
| 2087 | tors.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2088 | ||
| 2089 | local rightleg = Instance.new("Weld", me.Torso)
| |
| 2090 | rightleg.Part0 = me.Torso | |
| 2091 | rightleg.Part1 = me["Right Leg"] | |
| 2092 | rightleg.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0.5, -2, 0) | |
| 2093 | ||
| 2094 | local leftleg = Instance.new("Weld", me.Torso)
| |
| 2095 | leftleg.Part0 = me.Torso | |
| 2096 | leftleg.Part1 = me["Left Leg"] | |
| 2097 | leftleg.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-0.5, -2, 0) | |
| 2098 | ||
| 2099 | for i = 0, 1, 0.03 do | |
| 2100 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-10), 0, 0), i) | |
| 2101 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-80), 0, 0), i) | |
| 2102 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-80), 0, 0), i) | |
| 2103 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), i) | |
| 2104 | wait() | |
| 2105 | end | |
| 2106 | for i = 0, 1, 0.03 do | |
| 2107 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(5), 0, 0), i) | |
| 2108 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1, 0.15) * CFrame.Angles(math.rad(-95), 0, 0), i) | |
| 2109 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1, 0.15) * CFrame.Angles(math.rad(-95), 0, 0), i) | |
| 2110 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1, 0.3, -1.5) * CFrame.Angles(math.rad(90), 0, math.rad(-35)), i) | |
| 2111 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1, 0.3, -1.5) * CFrame.Angles(math.rad(90), 0, math.rad(35)), i) | |
| 2112 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.new(1.35, 0, 1) * CFrame.Angles(1.55, math.rad(-180), 1), i) | |
| 2113 | wait() | |
| 2114 | end | |
| 2115 | local bleedzer = Instance.new('Part',me.Torso)
| |
| 2116 | bleedzer.CFrame = me.Torso.CFrame | |
| 2117 | bleedzer.Size = Vector3.new(0.1,0.1,0.1) | |
| 2118 | bleedzer.Transparency = 1 | |
| 2119 | bleedzer.CanCollide = false | |
| 2120 | local weld = Instance.new('Weld',bleedzer)
| |
| 2121 | weld.Part0 = bleedzer | |
| 2122 | weld.Part1 = me.Torso | |
| 2123 | weld.C0= CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 2124 | local woodpekker = coroutine.wrap(function() | |
| 2125 | bleed(bleedzer) | |
| 2126 | end) | |
| 2127 | woodpekker() | |
| 2128 | audio.SoundId = "rbxassetid://199977936" | |
| 2129 | audio.PlaybackSpeed = 1.5 | |
| 2130 | audio:Play() | |
| 2131 | audio2.SoundId = "rbxassetid://220834019" | |
| 2132 | audio2.PlaybackSpeed = 1 | |
| 2133 | audio2.TimePosition = 0.1 | |
| 2134 | audio2:Play() | |
| 2135 | for i = 0, 1, 0.1 do | |
| 2136 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20), 0, 0), i) | |
| 2137 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1, -0.35) * CFrame.Angles(math.rad(-70), 0, 0), i) | |
| 2138 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1, -0.35) * CFrame.Angles(math.rad(-70), 0, 0), i) | |
| 2139 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1, 0, 0) * CFrame.Angles(math.rad(70), 0, math.rad(-35)), i) | |
| 2140 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1, 0, 0) * CFrame.Angles(math.rad(70), 0, math.rad(35)), i) | |
| 2141 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.new(1.35, 0, 1) * CFrame.Angles(1.55, math.rad(-180), 1), i) | |
| 2142 | wait() | |
| 2143 | end | |
| 2144 | wait(1) | |
| 2145 | audio.SoundId = "rbxassetid://210943487" | |
| 2146 | audio.TimePosition = 0.2 | |
| 2147 | audio.PlaybackSpeed = 0.75 | |
| 2148 | audio:Play() | |
| 2149 | for i = 0, 1, 0.03 do | |
| 2150 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20), 0, 0), i) | |
| 2151 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1, -0.35) * CFrame.Angles(math.rad(-70), 0, 0), i) | |
| 2152 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1, -0.35) * CFrame.Angles(math.rad(-70), 0, 0), i) | |
| 2153 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1, 0.3, -1.5) * CFrame.Angles(math.rad(70), 0, math.rad(-35)), i) | |
| 2154 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1, 0.3, -1.5) * CFrame.Angles(math.rad(70), 0, math.rad(35)), i) | |
| 2155 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.new(1.35, 0, 1) * CFrame.Angles(1.55, math.rad(-180), 1), i) | |
| 2156 | wait() | |
| 2157 | end | |
| 2158 | for i = 0, 1, 0.03 do | |
| 2159 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0, -0.4) * CFrame.Angles(math.rad(30), 0, math.rad(0)), i) | |
| 2160 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0, -0.4) * CFrame.Angles(math.rad(30), 0, math.rad(0)), i) | |
| 2161 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0), i) | |
| 2162 | wait() | |
| 2163 | end | |
| 2164 | wait(0.24) | |
| 2165 | if me:FindFirstChildOfClass('Humanoid') then
| |
| 2166 | me:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 2167 | end | |
| 2168 | wait(0.01) | |
| 2169 | killz(me,me.Torso.Name,nil,nil,true) | |
| 2170 | ||
| 2171 | tors:Remove() | |
| 2172 | rightarm:Remove() | |
| 2173 | rightleg:Remove() | |
| 2174 | leftleg:Remove() | |
| 2175 | leftarm:Remove() | |
| 2176 | rightshoulderz:Clone().Parent = me.Torso | |
| 2177 | leftshoulderz:Clone().Parent = me.Torso | |
| 2178 | torsojoint:Clone().Parent = me.HumanoidRootPart | |
| 2179 | lefthipz:Clone().Parent = me.Torso | |
| 2180 | righthipz:Clone().Parent = me.Torso | |
| 2181 | me.Humanoid.JumpPower = 50 | |
| 2182 | me.Humanoid.WalkSpeed = 16 | |
| 2183 | acting = false | |
| 2184 | canClick = true | |
| 2185 | doing = false | |
| 2186 | hit = false | |
| 2187 | kyssing = false | |
| 2188 | if decearingTHING == 4 then | |
| 2189 | decearingEGG:Remove() | |
| 2190 | end | |
| 2191 | end | |
| 2192 | ||
| 2193 | function bleedout() | |
| 2194 | local doit = coroutine.wrap(function() | |
| 2195 | local targe = grabbed | |
| 2196 | local num = 0 | |
| 2197 | while targe and targe:FindFirstChildOfClass('Humanoid') and targe:FindFirstChildOfClass('Humanoid').Health > 0 and num < 11 do
| |
| 2198 | if targe.Head:FindFirstChild('Died') then
| |
| 2199 | tone = math.random(6, 12) / 10 | |
| 2200 | targe.Head.Died.PlaybackSpeed = tone | |
| 2201 | targe.Head.Died:Play() | |
| 2202 | else | |
| 2203 | local deathsound = Instance.new('Sound',targe.Head)
| |
| 2204 | deathsound.Name = "Died" | |
| 2205 | deathsound.SoundId = 'rbxasset://sounds/uuhhh.mp3' | |
| 2206 | deathsound.Volume = 0.65 | |
| 2207 | deathsound.EmitterSize = 5 | |
| 2208 | deathsound.MaxDistance = 150 | |
| 2209 | tone = math.random(5, 15) / 10 | |
| 2210 | targe.Head.Died.PlaybackSpeed = tone | |
| 2211 | targe.Head.Died:Play() | |
| 2212 | end | |
| 2213 | targe:FindFirstChildOfClass('Humanoid').Health = targe:FindFirstChildOfClass('Humanoid').Health - 7
| |
| 2214 | num = num+1 | |
| 2215 | wait(0.325) | |
| 2216 | end | |
| 2217 | targe:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 2218 | wait() | |
| 2219 | killz(targe,'Head',nil,nil,false,true) | |
| 2220 | wait(2) | |
| 2221 | targe:Remove() | |
| 2222 | end) | |
| 2223 | doit() | |
| 2224 | end | |
| 2225 | ||
| 2226 | function liedown() | |
| 2227 | local doit = coroutine.wrap(function() | |
| 2228 | local targe = grabbed | |
| 2229 | wait(2) | |
| 2230 | if targe and targe:FindFirstChildOfClass('Humanoid') then
| |
| 2231 | targe:FindFirstChildOfClass('Humanoid').PlatformStand = false
| |
| 2232 | end | |
| 2233 | end) | |
| 2234 | doit() | |
| 2235 | end | |
| 2236 | ||
| 2237 | function grab() | |
| 2238 | local doit = coroutine.wrap(function() | |
| 2239 | acting = true | |
| 2240 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed + 3
| |
| 2241 | local arm = me["Right Arm"] | |
| 2242 | local tors = me.Torso | |
| 2243 | local arm2 = me["Left Arm"] | |
| 2244 | local humanroot = me.HumanoidRootPart | |
| 2245 | local weld2 = Instance.new('Weld',arm)
| |
| 2246 | weld2.Part0 = arm | |
| 2247 | weld2.Part1 = tors | |
| 2248 | weld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
| 2249 | local weld3 = Instance.new('Weld',arm2)
| |
| 2250 | weld3.Part0 = arm2 | |
| 2251 | weld3.Part1 = tors | |
| 2252 | weld3.C0 = CFrame.new(1.5,0,-0.3) * CFrame.Angles(0.3,0.1,0) | |
| 2253 | for i = 0,1,0.05 do | |
| 2254 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or humanroot == nil then return end
| |
| 2255 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.2,1.3,0.4)*CFrame.Angles(0.5,0,-1.2),i) | |
| 2256 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.2,1.3,0)*CFrame.Angles(0,0,1.2),i) | |
| 2257 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), -1.55) * CFrame.new(0, 0.95, 0) | |
| 2258 | wait(0.01) | |
| 2259 | end | |
| 2260 | grabbing = true | |
| 2261 | trail.Enabled = true | |
| 2262 | for i = 0,1,0.10 do | |
| 2263 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or humanroot == nil then return end
| |
| 2264 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-1.5, 0, -1.3), i) | |
| 2265 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1, -0.5)* CFrame.Angles(-1.5, 0, 1.1), i) | |
| 2266 | wait(0.01) | |
| 2267 | end | |
| 2268 | trail.Enabled = false | |
| 2269 | wait(0.5) | |
| 2270 | grabbing = false | |
| 2271 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed - 3
| |
| 2272 | if grabbed == nil then | |
| 2273 | for i = 0,1,0.1 do | |
| 2274 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil then return end
| |
| 2275 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 2276 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0),i) | |
| 2277 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0) | |
| 2278 | wait(0.001) | |
| 2279 | end | |
| 2280 | weld2:Destroy() | |
| 2281 | weld3:Destroy() | |
| 2282 | rightshoulderz:Clone().Parent = me.Torso | |
| 2283 | leftshoulderz:Clone().Parent = me.Torso | |
| 2284 | acting = false | |
| 2285 | canClick = true | |
| 2286 | end | |
| 2287 | end) | |
| 2288 | doit() | |
| 2289 | end | |
| 2290 | ||
| 2291 | function kill() | |
| 2292 | paralyzed = false | |
| 2293 | if grabbed.Torso:FindFirstChild("TargetWeld") == nil or grabbed:FindFirstChildOfClass('Humanoid').Health <= 0 then hardrelease() return end
| |
| 2294 | targetweld = grabbed.Torso.TargetWeld | |
| 2295 | targetweld2 = nil | |
| 2296 | local reee = grabbed:FindFirstChild("Left Arm")
| |
| 2297 | if reee and reee:FindFirstChild("Weld") then
| |
| 2298 | targetweld2 = reee.Weld | |
| 2299 | end | |
| 2300 | for i, v in pairs(grabbed:GetChildren()) do | |
| 2301 | if v.Name == "Part" then | |
| 2302 | v.CanCollide = true | |
| 2303 | end | |
| 2304 | end | |
| 2305 | targetweld3pt = grabbed:FindFirstChild("Right Arm")
| |
| 2306 | local targetrightshoulder = rightshoulder | |
| 2307 | local targetleftshoulder = leftshoulder | |
| 2308 | local targetweld3 = Instance.new("Weld", targetweld3pt)
| |
| 2309 | targetweld3.Part0 = grabbed.Torso | |
| 2310 | targetweld3.Part1 = targetweld3pt | |
| 2311 | targetweld3.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(1.5, 0, 0) | |
| 2312 | ||
| 2313 | local doit = coroutine.wrap(function() | |
| 2314 | local arm = me["Right Arm"] | |
| 2315 | local tors = grabbed.Torso | |
| 2316 | local arm2 = me["Left Arm"] | |
| 2317 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end
| |
| 2318 | doing = true | |
| 2319 | local weld2 = arm:FindFirstChildOfClass('Weld')
| |
| 2320 | local weld3 = arm2:FindFirstChildOfClass('Weld')
| |
| 2321 | local humanroot = me.HumanoidRootPart | |
| 2322 | ||
| 2323 | for i = 0,1,0.1 do | |
| 2324 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 2325 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-1.9, 0, -1.4), i) | |
| 2326 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 0.5, -0.5)* CFrame.Angles(-1.5, 0.4, 1.1), i) | |
| 2327 | wait(0.01) | |
| 2328 | end | |
| 2329 | ||
| 2330 | audio:Stop() | |
| 2331 | audio.SoundId = "rbxassetid://517040733" | |
| 2332 | tone = math.random(1, 3) | |
| 2333 | if tone == 1 then audio.PlaybackSpeed = 0.8 audio.TimePosition = 0.3 end | |
| 2334 | if tone == 2 then audio.PlaybackSpeed = 1 audio.TimePosition = 0.1 end | |
| 2335 | if tone == 3 then audio.PlaybackSpeed = 1.2 audio.TimePosition = 0.2 end | |
| 2336 | audio:Play() | |
| 2337 | ||
| 2338 | local bleedpart = Instance.new("Part", grabbed)
| |
| 2339 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 2340 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 2341 | bleedpart.CanCollide = false | |
| 2342 | bleedpart.Position = grabbed.Head.Position + Vector3.new(0, 1, 0) | |
| 2343 | bleedpart.Transparency = 1 | |
| 2344 | ||
| 2345 | local bleedpartweld = Instance.new("Weld", grabbed.Torso)
| |
| 2346 | bleedpartweld.Part0 = grabbed.Torso | |
| 2347 | bleedpartweld.Part1 = bleedpart | |
| 2348 | bleedpartweld.C0 = CFrame.Angles(-1, 0, -0.35) * CFrame.new(0, 1, 0.8) | |
| 2349 | local coru=coroutine.wrap(function() | |
| 2350 | bleed(bleedpart) | |
| 2351 | end) | |
| 2352 | coru() | |
| 2353 | ||
| 2354 | local slightthrow = Instance.new("BodyThrust", grabbed.Torso)
| |
| 2355 | slightthrow.Force = Vector3.new(0, 0, -2500) | |
| 2356 | ||
| 2357 | local slightthrow2 = Instance.new("BodyAngularVelocity", grabbed.Torso)
| |
| 2358 | slightthrow2.AngularVelocity = Vector3.new(0, -1000, 0) | |
| 2359 | slightthrow2.MaxTorque = Vector3.new(1000, 1000, 1000) | |
| 2360 | ||
| 2361 | if grabbed:FindFirstChildOfClass('Humanoid') then
| |
| 2362 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = true
| |
| 2363 | end | |
| 2364 | ||
| 2365 | killz(grabbed,'Left Leg') | |
| 2366 | killz(grabbed,'Left Arm') | |
| 2367 | killz(grabbed,'Right Leg') | |
| 2368 | killz(grabbed,'Right Arm') | |
| 2369 | ||
| 2370 | trail.Enabled = true | |
| 2371 | ||
| 2372 | for i = 0,1,0.2 do | |
| 2373 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 2374 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 1.7, -0.5)* CFrame.Angles(-0.25, 0, -1.4), i) | |
| 2375 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1.6, -0.5)* CFrame.Angles(-1.5, -1, 1.1), i) | |
| 2376 | wait(0.01) | |
| 2377 | end | |
| 2378 | ||
| 2379 | trail.Enabled = false | |
| 2380 | ||
| 2381 | bleedout() | |
| 2382 | ||
| 2383 | rightshoulderz:Clone().Parent = me.Torso | |
| 2384 | leftshoulderz:Clone().Parent = me.Torso | |
| 2385 | grabbed = nil | |
| 2386 | ||
| 2387 | if humanroot:FindFirstChild('Holder') then
| |
| 2388 | humanroot.Holder:Destroy() | |
| 2389 | end | |
| 2390 | ||
| 2391 | wait(0.2) | |
| 2392 | slightthrow:Remove() | |
| 2393 | slightthrow2:Remove() | |
| 2394 | for i = 0,1,0.05 do | |
| 2395 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 2396 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5, 0, 0)* CFrame.Angles(0, 0, 0), i) | |
| 2397 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5, 0, 0)* CFrame.Angles(0, 0, 0), i) | |
| 2398 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0) | |
| 2399 | wait(0.01) | |
| 2400 | end | |
| 2401 | ||
| 2402 | weld2:Destroy() | |
| 2403 | weld3:Destroy() | |
| 2404 | targetweld = nil | |
| 2405 | targetweld2 = nil | |
| 2406 | targetweld3 = nil | |
| 2407 | rightshoulderz:Clone().Parent = me.Torso | |
| 2408 | leftshoulderz:Clone().Parent = me.Torso | |
| 2409 | acting = false | |
| 2410 | canClick = true | |
| 2411 | doing = false | |
| 2412 | end) | |
| 2413 | doit() | |
| 2414 | end | |
| 2415 | ||
| 2416 | function finish() | |
| 2417 | if finishing == true then return end | |
| 2418 | finishing = true | |
| 2419 | acting = true | |
| 2420 | decearingTHING = math.random(1, 100) | |
| 2421 | if decearingTHING == 4 then | |
| 2422 | decearingEGG = Instance.new("Sound", me.Torso)
| |
| 2423 | decearingEGG.SoundId = "rbxassetid://138084557" | |
| 2424 | decearingEGG.PlaybackSpeed = math.random(10, 12) / 10 | |
| 2425 | decearingEGG.TimePosition = 0.2 | |
| 2426 | decearingEGG:Play() | |
| 2427 | end | |
| 2428 | me.Humanoid.WalkSpeed = 0 | |
| 2429 | me.Humanoid.JumpPower = 0 | |
| 2430 | ||
| 2431 | local rightarm = Instance.new("Weld", me.Torso)
| |
| 2432 | rightarm.Part0 = me.Torso | |
| 2433 | rightarm.Part1 = me["Right Arm"] | |
| 2434 | rightarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(1.5, 0, 0) | |
| 2435 | ||
| 2436 | local tors = Instance.new("Weld", me.HumanoidRootPart)
| |
| 2437 | tors.Part0 = me.HumanoidRootPart | |
| 2438 | tors.Part1 = me.Torso | |
| 2439 | tors.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2440 | ||
| 2441 | local rightleg = Instance.new("Weld", me.Torso)
| |
| 2442 | rightleg.Part0 = me.Torso | |
| 2443 | rightleg.Part1 = me["Right Leg"] | |
| 2444 | rightleg.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0.5, -2, 0) | |
| 2445 | ||
| 2446 | local leftleg = Instance.new("Weld", me.Torso)
| |
| 2447 | leftleg.Part0 = me.Torso | |
| 2448 | leftleg.Part1 = me["Left Leg"] | |
| 2449 | leftleg.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-0.5, -2, 0) | |
| 2450 | ||
| 2451 | for i = 0, 1, 0.05 do | |
| 2452 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), 0, 0), i) | |
| 2453 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -2, 0.2) * CFrame.Angles(math.rad(-15), 0, 0), i) | |
| 2454 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -2, 0.2) * CFrame.Angles(math.rad(-15), 0, 0), i) | |
| 2455 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 1.9, 0) * CFrame.Angles(math.rad(179), math.rad(179), 0), i) | |
| 2456 | wait() | |
| 2457 | end | |
| 2458 | for i=1,finishnum do | |
| 2459 | local num1 = 0.5 | |
| 2460 | local num2 = 0.5 | |
| 2461 | local num3 = 0.25 | |
| 2462 | if finishnum ~= 1 then | |
| 2463 | num3 = 0 | |
| 2464 | end | |
| 2465 | trail.Enabled = true | |
| 2466 | for i = 0, 1, num1 do | |
| 2467 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-60), 0, 0), i) | |
| 2468 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.5, 0) * CFrame.Angles(math.rad(0), 0, 0), i) | |
| 2469 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.7, -1) * CFrame.Angles(math.rad(10), 0, 0), i) | |
| 2470 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 1.9, -1) * CFrame.Angles(math.rad(160), math.rad(150), 0), i) | |
| 2471 | wait() | |
| 2472 | end | |
| 2473 | wait() | |
| 2474 | for i = 0, 1, num2 do | |
| 2475 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-20), 0, 0), i) | |
| 2476 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.5, 0) * CFrame.Angles(math.rad(-30), 0, 0), i) | |
| 2477 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.7, -1) * CFrame.Angles(math.rad(-20), 0, 0), i) | |
| 2478 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 1.9, 0.2) * CFrame.Angles(math.rad(250), math.rad(180), 0), i) | |
| 2479 | wait() | |
| 2480 | end | |
| 2481 | trail.Enabled = false | |
| 2482 | wait(num3) | |
| 2483 | end | |
| 2484 | wait() | |
| 2485 | for i = 0, 1, 0.05 do | |
| 2486 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
| 2487 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -2, 0) * CFrame.Angles(0, 0, 0), i) | |
| 2488 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -2, 0) * CFrame.Angles(0, 0, 0), i) | |
| 2489 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
| 2490 | wait() | |
| 2491 | end | |
| 2492 | tors:Remove() | |
| 2493 | rightarm:Remove() | |
| 2494 | rightleg:Remove() | |
| 2495 | leftleg:Remove() | |
| 2496 | rightshoulderz:Clone().Parent = me.Torso | |
| 2497 | leftshoulderz:Clone().Parent = me.Torso | |
| 2498 | torsojoint:Clone().Parent = me.HumanoidRootPart | |
| 2499 | lefthipz:Clone().Parent = me.Torso | |
| 2500 | righthipz:Clone().Parent = me.Torso | |
| 2501 | me.Humanoid.JumpPower = 50 | |
| 2502 | me.Humanoid.WalkSpeed = 16 | |
| 2503 | acting = false | |
| 2504 | canClick = true | |
| 2505 | doing = false | |
| 2506 | hit = false | |
| 2507 | finishing = false | |
| 2508 | if decearingTHING == 4 then | |
| 2509 | decearingEGG:Remove() | |
| 2510 | end | |
| 2511 | end | |
| 2512 | ||
| 2513 | function throw() | |
| 2514 | if grabbed.Torso:FindFirstChild("TargetWeld") == nil or grabbed:FindFirstChildOfClass('Humanoid').Health <= 0 then return end
| |
| 2515 | paralyzed = false | |
| 2516 | targetweld = grabbed.Torso.TargetWeld | |
| 2517 | local ree = grabbed:FindFirstChild("Left Arm")
| |
| 2518 | targetweld2 =nil | |
| 2519 | if ree and ree:FindFirstChild("Weld") then
| |
| 2520 | targetweld2 = ree.Weld | |
| 2521 | end | |
| 2522 | ||
| 2523 | for i, v in pairs(grabbed:GetChildren()) do | |
| 2524 | if v.Name == "Part" then | |
| 2525 | v.CanCollide = true | |
| 2526 | end | |
| 2527 | end | |
| 2528 | ||
| 2529 | ||
| 2530 | local doit = coroutine.wrap(function() | |
| 2531 | local arm = me["Right Arm"] | |
| 2532 | local tors = grabbed.Torso | |
| 2533 | local arm2 = me["Left Arm"] | |
| 2534 | local targrightshoulder = rightshoulder | |
| 2535 | ||
| 2536 | local targleftshoulder = leftshoulder | |
| 2537 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end
| |
| 2538 | doing = true | |
| 2539 | local weld2 = arm:FindFirstChildOfClass('Weld')
| |
| 2540 | local weld3 = arm2:FindFirstChildOfClass('Weld')
| |
| 2541 | local humanroot = me.HumanoidRootPart | |
| 2542 | ||
| 2543 | for i = 0,1,0.2 do | |
| 2544 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 2545 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 1.7, -0.5)* CFrame.Angles(-0.25, 1, -1.4), i) | |
| 2546 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1.6, -0.5)* CFrame.Angles(-1.5, -1, 1.1), i) | |
| 2547 | targetweld.C0 = targetweld.C0:lerp(CFrame.new(0, 1.5, 0)*CFrame.Angles(0, 0, 0), i) | |
| 2548 | if targetweld2 then | |
| 2549 | targetweld2.C0 = targetweld2.C0:lerp(CFrame.new(-1.5, 0, 0)*CFrame.Angles(0, 0, 0), i) | |
| 2550 | end | |
| 2551 | wait(0.01) | |
| 2552 | end | |
| 2553 | ||
| 2554 | audio:Stop() | |
| 2555 | audio.SoundId = "rbxassetid://536642316" | |
| 2556 | tone = math.random(1, 3) | |
| 2557 | if tone == 1 then audio.PlaybackSpeed = 0.8 audio.TimePosition = 0.08 end | |
| 2558 | if tone == 2 then audio.PlaybackSpeed = 1 audio.TimePosition = 0.1 end | |
| 2559 | if tone == 3 then audio.PlaybackSpeed = 1.2 audio.TimePosition = 0.12 end | |
| 2560 | audio:Play() | |
| 2561 | ||
| 2562 | local slightthrow = Instance.new("BodyVelocity", grabbed.Torso)
| |
| 2563 | slightthrow.Velocity = Vector3.new(0,20,0)+(me.Torso.CFrame.lookVector*20) | |
| 2564 | slightthrow.P = 5000 | |
| 2565 | slightthrow.MaxForce = Vector3.new(9000001,9000001,9000001) | |
| 2566 | local point = grabbed.Torso.Position | |
| 2567 | local aaaaaa = grabbed | |
| 2568 | liedown() | |
| 2569 | ||
| 2570 | rightshoulderz:Clone().Parent = me.Torso | |
| 2571 | leftshoulderz:Clone().Parent = me.Torso | |
| 2572 | grabbed = nil | |
| 2573 | ||
| 2574 | if humanroot:FindFirstChild('Holder') then
| |
| 2575 | humanroot.Holder:Destroy() | |
| 2576 | end | |
| 2577 | local coru = coroutine.wrap(function() | |
| 2578 | while aaaaaa and aaaaaa:FindFirstChild('Torso') and (aaaaaa.Torso.Position-point).magnitude < 5 do wait(0.001) end
| |
| 2579 | if aaaaaa:FindFirstChildOfClass('Humanoid') then
| |
| 2580 | aaaaaa:FindFirstChildOfClass('Humanoid').Name = "Humanoid"
| |
| 2581 | aaaaaa:FindFirstChildOfClass('Humanoid').JumpPower = 50
| |
| 2582 | aaaaaa:FindFirstChildOfClass('Humanoid').WalkSpeed = 16
| |
| 2583 | end | |
| 2584 | slightthrow:Remove() | |
| 2585 | end) | |
| 2586 | coru() | |
| 2587 | ||
| 2588 | for i = 0,1,0.05 do | |
| 2589 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 2590 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 2591 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0),i) | |
| 2592 | wait(0.01) | |
| 2593 | end | |
| 2594 | weld2:Destroy() | |
| 2595 | weld3:Destroy() | |
| 2596 | targetweld:Remove() | |
| 2597 | if targetweld2 then | |
| 2598 | targetweld2:Remove() | |
| 2599 | end | |
| 2600 | if rightshoulder then | |
| 2601 | rightshoulder:Clone().Parent = tors | |
| 2602 | end | |
| 2603 | if leftshoulder then | |
| 2604 | leftshoulder:Clone().Parent = tors | |
| 2605 | end | |
| 2606 | headweld:Clone().Parent = tors | |
| 2607 | rightshoulderz:Clone().Parent = me.Torso | |
| 2608 | leftshoulderz:Clone().Parent = me.Torso | |
| 2609 | acting = false | |
| 2610 | canClick = true | |
| 2611 | doing = false | |
| 2612 | end) | |
| 2613 | doit() | |
| 2614 | end | |
| 2615 | ||
| 2616 | cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new | |
| 2617 | bc=BrickColor.new | |
| 2618 | local minimumsize = Vector3.new(0.7,0.7,0.7) | |
| 2619 | local surface_between_splitted_parts = 'SmoothNoOutlines' | |
| 2620 | local fragmentable = workspace | |
| 2621 | local list = {}
| |
| 2622 | local brickcount = 0 | |
| 2623 | local storage = {}
| |
| 2624 | local fillup = 1000 | |
| 2625 | local maximumstorage = 2000 | |
| 2626 | local storage_position = Vector3.new(0,0,5000) | |
| 2627 | local stored_partsize = Vector3.new(1,1,1) | |
| 2628 | local parts_created_per_frame = 5 | |
| 2629 | ||
| 2630 | local minimumsize = Vector3.new(0.7,0.7,0.7) | |
| 2631 | local surface_between_splitted_parts = 'SmoothNoOutlines' | |
| 2632 | local fragmentable = workspace | |
| 2633 | local list = {}
| |
| 2634 | local brickcount = 0 | |
| 2635 | local storage = {}
| |
| 2636 | local fillup = 1000 | |
| 2637 | local maximumstorage = 2000 | |
| 2638 | local storage_position = Vector3.new(0,0,5000) | |
| 2639 | local stored_partsize = Vector3.new(1,1,1) | |
| 2640 | local parts_created_per_frame = 5 | |
| 2641 | ||
| 2642 | ||
| 2643 | function fragmentate(cframe,size,color,explosion_position,explosion_blastradius,backsurface,bottomsurface,frontsurface,leftsurface,rightsurface,topsurface,transparency,reflectance,material) | |
| 2644 | local xi = size.X >= minimumsize.X*(1+explosion_blastradius/16) and 2 or 1 | |
| 2645 | local yi = size.Y >= minimumsize.Y*(1+explosion_blastradius/16) and 2 or 1 | |
| 2646 | local zi = size.Z >= minimumsize.Z*(1+explosion_blastradius/16) and 2 or 1 | |
| 2647 | if xi == 1 and yi == 1 and zi == 1 or (cframe.p-explosion_position).magnitude > size.magnitude/2 + explosion_blastradius then | |
| 2648 | if xi == 1 and yi == 1 and zi == 1 then return end | |
| 2649 | if #storage > 0 then | |
| 2650 | local p = storage[1] | |
| 2651 | p.BrickColor = color | |
| 2652 | p.Size = size | |
| 2653 | p.Anchored = false | |
| 2654 | p.BackSurface = backsurface | |
| 2655 | p.BottomSurface = bottomsurface | |
| 2656 | p.FrontSurface = frontsurface | |
| 2657 | p.LeftSurface = leftsurface | |
| 2658 | p.RightSurface = rightsurface | |
| 2659 | p.TopSurface = topsurface | |
| 2660 | p.Transparency = transparency | |
| 2661 | p.CFrame = cframe | |
| 2662 | p.Reflectance = reflectance | |
| 2663 | p.Material = material | |
| 2664 | game:GetService('Debris'):AddItem(p,30)
| |
| 2665 | p:BreakJoints() | |
| 2666 | table.remove(storage,1) | |
| 2667 | else | |
| 2668 | local p = Instance.new("Part",fragmentable)
| |
| 2669 | p.BrickColor = color | |
| 2670 | p.FormFactor = "Custom" | |
| 2671 | p.Size = size | |
| 2672 | p.BackSurface = backsurface | |
| 2673 | p.BottomSurface = bottomsurface | |
| 2674 | p.FrontSurface = frontsurface | |
| 2675 | p.LeftSurface = leftsurface | |
| 2676 | p.RightSurface = rightsurface | |
| 2677 | p.TopSurface = topsurface | |
| 2678 | p.Transparency = transparency | |
| 2679 | p.Material = material | |
| 2680 | if p.Transparency>0.285 then | |
| 2681 | p.Anchored = false | |
| 2682 | else | |
| 2683 | p.Anchored=false | |
| 2684 | p.Material='Wood' | |
| 2685 | game:GetService('Debris'):AddItem(p,10)
| |
| 2686 | end | |
| 2687 | p.CFrame = cframe | |
| 2688 | p.Reflectance = reflectance | |
| 2689 | p:BreakJoints() | |
| 2690 | end | |
| 2691 | return | |
| 2692 | end | |
| 2693 | local mody = math.random(-125,125)/1000 | |
| 2694 | for y = 1,yi do | |
| 2695 | if math.random()> 0.5 then | |
| 2696 | local modx = math.random(-125,125)/1000 | |
| 2697 | for x = 1,xi do | |
| 2698 | local modz = math.random(-125,125)/1000 | |
| 2699 | for z = 1,zi do --offset = x/xi-0.75+modx) | |
| 2700 | 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)), | |
| 2701 | 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, | |
| 2702 | 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, | |
| 2703 | z~=zi and surface_between_splitted_parts or backsurface,y==2 and surface_between_splitted_parts or bottomsurface, | |
| 2704 | 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, | |
| 2705 | y~=yi and surface_between_splitted_parts or topsurface,transparency,reflectance,material) | |
| 2706 | end | |
| 2707 | ||
| 2708 | end | |
| 2709 | else | |
| 2710 | local modz = math.random(-125,125)/1000 | |
| 2711 | for z = 1,zi do | |
| 2712 | local modx = math.random(-125,125)/1000 | |
| 2713 | for x = 1,xi do | |
| 2714 | 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)), | |
| 2715 | 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, | |
| 2716 | zi == 2 and size.Z*(1-2*math.abs(z/zi-0.75+modz)) or size.Z),color,explosion_position,explosion_blastradius, | |
| 2717 | z~=zi and surface_between_splitted_parts or backsurface,y==2 and surface_between_splitted_parts or bottomsurface, | |
| 2718 | 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, | |
| 2719 | y~=yi and surface_between_splitted_parts or topsurface,transparency,reflectance,material) | |
| 2720 | end | |
| 2721 | end | |
| 2722 | end | |
| 2723 | end | |
| 2724 | end | |
| 2725 | ||
| 2726 | function start_fragmentation(position,radius,nuh) | |
| 2727 | local search = Region3.new(position-Vector3.new(radius,radius,radius)*1.1,position+Vector3.new(radius,radius,radius)*1.1) | |
| 2728 | repeat | |
| 2729 | local finish = false | |
| 2730 | local parts = workspace:FindPartsInRegion3WithIgnoreList(search,list,100) | |
| 2731 | for i = 1,#parts do | |
| 2732 | table.insert(list,1,parts[i]) | |
| 2733 | end | |
| 2734 | finish = true | |
| 2735 | until #parts < 100 and finish | |
| 2736 | local t = tick() | |
| 2737 | for i = 1,#list do | |
| 2738 | local p = list[i] | |
| 2739 | 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
| |
| 2740 | 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) | |
| 2741 | if #storage < maximumstorage and p.Shape == "Block" then | |
| 2742 | p.Anchored = false | |
| 2743 | p.FormFactor = "Custom" | |
| 2744 | p.Size = stored_partsize | |
| 2745 | p.Position = storage_position | |
| 2746 | table.insert(storage,1,p) | |
| 2747 | else | |
| 2748 | p:Destroy() | |
| 2749 | end | |
| 2750 | end | |
| 2751 | 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 | |
| 2752 | 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) | |
| 2753 | if #storage < maximumstorage and p.Shape == "Block" then | |
| 2754 | p.Anchored = false | |
| 2755 | p.Material='Wood' | |
| 2756 | p.FormFactor = "Custom" | |
| 2757 | p.Size = stored_partsize | |
| 2758 | p.Position = storage_position | |
| 2759 | table.insert(storage,1,p) | |
| 2760 | else | |
| 2761 | p:Destroy() | |
| 2762 | end | |
| 2763 | end | |
| 2764 | end | |
| 2765 | list = {}
| |
| 2766 | end | |
| 2767 | ||
| 2768 | ||
| 2769 | function fling() | |
| 2770 | local doit = coroutine.wrap(function() | |
| 2771 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') and me:FindFirstChild('HumanoidRootPart') then
| |
| 2772 | acting = true | |
| 2773 | for i=1,finishnum do | |
| 2774 | local weld2 = Instance.new('Weld',me["Right Arm"])
| |
| 2775 | weld2.Part0 = me["Right Arm"] | |
| 2776 | weld2.Part1 = me["Torso"] | |
| 2777 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 2778 | if finishnum == 1 then | |
| 2779 | for i = 0,1,0.05 do | |
| 2780 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 2781 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0),i) | |
| 2782 | wait(0.01) | |
| 2783 | end | |
| 2784 | end | |
| 2785 | audio.SoundId = "rbxassetid://166083610" | |
| 2786 | audio.PlaybackSpeed = 1 | |
| 2787 | audio.TimePosition = 0.1 | |
| 2788 | audio:Play() | |
| 2789 | if finishnum == 1 then | |
| 2790 | for i = 0,1,0.5 do | |
| 2791 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 2792 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0),i) | |
| 2793 | wait(0.001) | |
| 2794 | end | |
| 2795 | end | |
| 2796 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
| 2797 | local knofe = obj1:Clone() | |
| 2798 | for i, v in pairs(obj1:GetChildren()) do | |
| 2799 | if v:IsA('BasePart') then
| |
| 2800 | v.Transparency = 1 | |
| 2801 | end | |
| 2802 | end | |
| 2803 | knofe.Parent = workspace | |
| 2804 | knofe.Name = "Projectile" | |
| 2805 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
| 2806 | knofe:FindFirstChild("Trail", true).Enabled = true
| |
| 2807 | local heck = Instance.new('BodyVelocity',knofe.Grab)
| |
| 2808 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120 | |
| 2809 | local coru = coroutine.wrap(function() | |
| 2810 | wait(0.45) | |
| 2811 | if heck then | |
| 2812 | heck:Destroy() | |
| 2813 | end | |
| 2814 | end) | |
| 2815 | coru() | |
| 2816 | local able = true | |
| 2817 | knofe["big ass knife"].Touched:connect(function(hit) | |
| 2818 | 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
| |
| 2819 | local thing = hit.Parent:FindFirstChildOfClass('Humanoid')
| |
| 2820 | local ree = hit.Parent | |
| 2821 | if thing == nil then | |
| 2822 | ree = hit.Parent.Parent | |
| 2823 | end | |
| 2824 | if ree:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 2825 | knofe:FindFirstChild("Trail", true).Enabled = false
| |
| 2826 | game:GetService('Debris'):AddItem(knofe,5)
| |
| 2827 | tone = math.random(1, 3) | |
| 2828 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 2829 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
| 2830 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
| 2831 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
| 2832 | sound.PlaybackSpeed = 1 | |
| 2833 | sound:Play() | |
| 2834 | for i, v in pairs(knofe:GetChildren()) do | |
| 2835 | if v:IsA('BasePart') then
| |
| 2836 | v.CanCollide = true | |
| 2837 | v.Anchored = true | |
| 2838 | end | |
| 2839 | end | |
| 2840 | hit.Anchored = true | |
| 2841 | if ree:FindFirstChildOfClass('Humanoid') and hit.Name == "Torso" or hit.Name == "Head" then
| |
| 2842 | ree:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 2843 | end | |
| 2844 | wait() | |
| 2845 | killz(ree,hit.Name,knofe) | |
| 2846 | else | |
| 2847 | knofe:FindFirstChild("Trail", true).Enabled = false
| |
| 2848 | heck.Velocity = Vector3.new(0,0,0) | |
| 2849 | heck:Destroy() | |
| 2850 | game:GetService('Debris'):AddItem(knofe,5)
| |
| 2851 | tone = math.random(1, 3) | |
| 2852 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 2853 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
| 2854 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
| 2855 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
| 2856 | sound.PlaybackSpeed = 1 | |
| 2857 | sound:Play() | |
| 2858 | for i, v in pairs(knofe:GetChildren()) do | |
| 2859 | if v:IsA('BasePart') then
| |
| 2860 | v.Anchored = false | |
| 2861 | end | |
| 2862 | end | |
| 2863 | hit.Anchored = true | |
| 2864 | wait(0.001) | |
| 2865 | hit.Anchored = false | |
| 2866 | for i, v in pairs(knofe:GetChildren()) do | |
| 2867 | if v:IsA('BasePart') then
| |
| 2868 | v.Anchored = false | |
| 2869 | end | |
| 2870 | end | |
| 2871 | if knofe then | |
| 2872 | local coru = coroutine.wrap(function() | |
| 2873 | if hit then | |
| 2874 | local uno = Instance.new('Part',workspace)
| |
| 2875 | local dos = Instance.new('Part',workspace)
| |
| 2876 | uno.CFrame = hit.CFrame | |
| 2877 | dos.CFrame = knofe["big ass knife"].CFrame | |
| 2878 | local weld = Instance.new('Weld',knofe["big ass knife"])
| |
| 2879 | weld.Part0 = hit | |
| 2880 | weld.Part1 = knofe["big ass knife"] | |
| 2881 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 2882 | uno:Destroy() | |
| 2883 | dos:Destroy() | |
| 2884 | end | |
| 2885 | end) | |
| 2886 | coru() | |
| 2887 | end | |
| 2888 | end | |
| 2889 | elseif hit.Parent and hit.Parent ~= me and hit.Parent.Parent ~= me and hit.CanCollide and knofe.Grab.CanCollide == false then | |
| 2890 | if hit.Transparency and (hit.Transparency<=0.285 or hit:GetMass()<=3000) then | |
| 2891 | knofe:FindFirstChild("Trail", true).Enabled = false
| |
| 2892 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 2893 | sound.SoundId = 'rbxassetid://267585646' | |
| 2894 | sound:Play() | |
| 2895 | for i,v in pairs(knofe:GetChildren()) do | |
| 2896 | if v:IsA('BasePart') then
| |
| 2897 | v.Anchored = true | |
| 2898 | end | |
| 2899 | end | |
| 2900 | wait() | |
| 2901 | heck.Velocity = Vector3.new(0,0,0) | |
| 2902 | heck:Destroy() | |
| 2903 | local uno = Instance.new('Part',workspace)
| |
| 2904 | local dos = Instance.new('Part',workspace)
| |
| 2905 | uno.CFrame = hit.CFrame | |
| 2906 | dos.CFrame = knofe["big ass knife"].CFrame | |
| 2907 | local weld = Instance.new('Weld',knofe["big ass knife"])
| |
| 2908 | weld.Part0 = hit | |
| 2909 | weld.Part1 = knofe["big ass knife"] | |
| 2910 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 2911 | uno:Destroy() | |
| 2912 | dos:Destroy() | |
| 2913 | for i,v in pairs(knofe:GetChildren()) do | |
| 2914 | if v:IsA('BasePart') then
| |
| 2915 | v.Anchored = false | |
| 2916 | end | |
| 2917 | end | |
| 2918 | game:GetService('Debris'):AddItem(knofe,5)
| |
| 2919 | for i,v in pairs(knofe:GetChildren()) do | |
| 2920 | if v:IsA('BasePart') then
| |
| 2921 | v.CanCollide = true | |
| 2922 | end | |
| 2923 | end | |
| 2924 | end | |
| 2925 | 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
| |
| 2926 | knofe:FindFirstChild("Trail", true).Enabled = false
| |
| 2927 | able = false | |
| 2928 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 2929 | sound.SoundId = 'rbxassetid://144884907' | |
| 2930 | sound:Play() | |
| 2931 | local coru = coroutine.wrap(function() | |
| 2932 | start_fragmentation(knofe["big ass knife"].Position,1.25,knofe) | |
| 2933 | end) | |
| 2934 | coru() | |
| 2935 | end | |
| 2936 | end | |
| 2937 | end) | |
| 2938 | if finishnum == 1 then | |
| 2939 | for i= 0,1,0.1 do | |
| 2940 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 2941 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 2942 | wait(0.001) | |
| 2943 | end | |
| 2944 | else | |
| 2945 | for i= 0,1,0.5 do | |
| 2946 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 2947 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 2948 | wait(0.001) | |
| 2949 | end | |
| 2950 | end | |
| 2951 | for i,v in pairs(obj1:GetChildren()) do | |
| 2952 | if v:IsA('BasePart') then
| |
| 2953 | v.Transparency = 0 | |
| 2954 | end | |
| 2955 | end | |
| 2956 | weld2:Destroy() | |
| 2957 | rightshoulderz:Clone().Parent = me.Torso | |
| 2958 | end | |
| 2959 | acting = false | |
| 2960 | canClick = true | |
| 2961 | end | |
| 2962 | end) | |
| 2963 | doit() | |
| 2964 | end | |
| 2965 | ||
| 2966 | function instasplode() | |
| 2967 | local coru = coroutine.wrap(function() | |
| 2968 | acting = true | |
| 2969 | for i=1,1 do | |
| 2970 | local weld2 = Instance.new('Weld',me["Right Arm"])
| |
| 2971 | weld2.Part0 = me["Right Arm"] | |
| 2972 | weld2.Part1 = me["Torso"] | |
| 2973 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 2974 | if finishnum == 1 then | |
| 2975 | for i = 0,1,0.05 do | |
| 2976 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 2977 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0),i) | |
| 2978 | wait(0.01) | |
| 2979 | end | |
| 2980 | end | |
| 2981 | weld2.C0 = CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0) | |
| 2982 | audio.SoundId = "rbxassetid://166083610" | |
| 2983 | audio.PlaybackSpeed = 1 | |
| 2984 | audio.TimePosition = 0.1 | |
| 2985 | audio:Play() | |
| 2986 | if finishnum == 1 then | |
| 2987 | for i = 0,1,0.5 do | |
| 2988 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 2989 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0),i) | |
| 2990 | wait(0.001) | |
| 2991 | end | |
| 2992 | end | |
| 2993 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
| 2994 | local knofe = obj1:Clone() | |
| 2995 | for i,v in pairs(obj1:GetChildren()) do | |
| 2996 | if v:IsA('BasePart') then
| |
| 2997 | v.Transparency = 1 | |
| 2998 | end | |
| 2999 | end | |
| 3000 | knofe.Parent = workspace | |
| 3001 | knofe.Name = "Projectile" | |
| 3002 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
| 3003 | knofe:FindFirstChild("Trail", true).Enabled = false
| |
| 3004 | fireofjesUS = Instance.new("Fire", knofe.Grab)
| |
| 3005 | local heck = Instance.new('BodyVelocity',knofe.Grab)
| |
| 3006 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120 | |
| 3007 | local coru = coroutine.wrap(function() | |
| 3008 | wait(0.45) | |
| 3009 | if heck then | |
| 3010 | heck:Destroy() | |
| 3011 | end | |
| 3012 | end) | |
| 3013 | coru() | |
| 3014 | knofe["big ass knife"].Touched:connect(function(hit) | |
| 3015 | if hit.Parent ~= me and hit.Parent.Parent ~= me and hit.Transparency < 1 and knofe.Grab.CanCollide == false then | |
| 3016 | heck.Velocity = Vector3.new(0,0,0) | |
| 3017 | heck:Destroy() | |
| 3018 | for i,v in pairs(knofe:GetChildren()) do | |
| 3019 | if v:IsA('BasePart') then
| |
| 3020 | v.CanCollide = true | |
| 3021 | end | |
| 3022 | end | |
| 3023 | local hum = hit.Parent:FindFirstChildOfClass('Humanoid')
| |
| 3024 | if hum == nil then | |
| 3025 | hum = hit.Parent.Parent:FindFirstChildOfClass('Humanoid')
| |
| 3026 | end | |
| 3027 | if knofe then | |
| 3028 | local coru = coroutine.wrap(function() | |
| 3029 | if hit then | |
| 3030 | local uno = Instance.new('Part',workspace)
| |
| 3031 | local dos = Instance.new('Part',workspace)
| |
| 3032 | uno.CFrame = hit.CFrame | |
| 3033 | dos.CFrame = knofe["big ass knife"].CFrame | |
| 3034 | local weld = Instance.new('Weld',knofe["big ass knife"])
| |
| 3035 | weld.Part0 = hit | |
| 3036 | weld.Part1 = knofe["big ass knife"] | |
| 3037 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 3038 | uno:Destroy() | |
| 3039 | dos:Destroy() | |
| 3040 | end | |
| 3041 | end) | |
| 3042 | coru() | |
| 3043 | end | |
| 3044 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 3045 | sound.Name = "BOOM" | |
| 3046 | sound.EmitterSize = 25 | |
| 3047 | sound.SoundId = 'rbxassetid://476477344' | |
| 3048 | sound.Volume = 0.5 | |
| 3049 | sound:Play() | |
| 3050 | local exppart = Instance.new("Part", game.Workspace)
| |
| 3051 | exppart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 3052 | exppart.Anchored = true | |
| 3053 | exppart.CanCollide = false | |
| 3054 | exppart.CFrame = CFrame.new(knofe.Grab.CFrame.p) | |
| 3055 | exppart.Transparency = 1 | |
| 3056 | local expaccent = Instance.new("ParticleEmitter", exppart)
| |
| 3057 | expaccent.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 0))})
| |
| 3058 | expaccent.LightEmission = 0.2 | |
| 3059 | expaccent.LightInfluence = 0.3 | |
| 3060 | expaccent.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0)})
| |
| 3061 | expaccent.Acceleration = Vector3.new(0, 30, 0) | |
| 3062 | expaccent.Drag = 15 | |
| 3063 | expaccent.LockedToPart = false | |
| 3064 | expaccent.Lifetime = NumberRange.new(0.5, 1.5) | |
| 3065 | expaccent.Rate = 2000 | |
| 3066 | expaccent.Speed = NumberRange.new(0,0) | |
| 3067 | expaccent.SpreadAngle = Vector2.new(360, 360) | |
| 3068 | expaccent:Clone().Parent = exppart | |
| 3069 | expaccent:Clone().Parent = exppart | |
| 3070 | local exp = Instance.new('Explosion',game.Workspace)
| |
| 3071 | exp.Position = knofe["big ass knife"].Position | |
| 3072 | exp.ExplosionType = Enum.ExplosionType.NoCraters | |
| 3073 | exp.BlastRadius = 5 | |
| 3074 | exp.Visible = false | |
| 3075 | exp.BlastPressure = 0 | |
| 3076 | exp.DestroyJointRadiusPercent = 0 | |
| 3077 | exp.Hit:connect(function(hit) | |
| 3078 | if hit.Parent and hit.Parent ~= me and hit.Parent.Name ~= "bitch ass knife" then | |
| 3079 | wait(0.001) | |
| 3080 | tgt = hit | |
| 3081 | local coru=coroutine.wrap(function(tgtt) | |
| 3082 | local fireofgods = Instance.new("Fire", tgtt)
| |
| 3083 | fireofgods.Size = 0 | |
| 3084 | fireofgods.Heat = 0 | |
| 3085 | local fireofgodsaccent = expaccent:Clone() | |
| 3086 | fireofgodsaccent.Parent = hit | |
| 3087 | fireofgodsaccent.Rate = 0 | |
| 3088 | fireofgodsaccent.Speed = NumberRange.new(5, 50) | |
| 3089 | fireofgodsaccent.SpreadAngle = Vector2.new(45, 45) | |
| 3090 | fireofgodsaccent.Acceleration = Vector3.new(0, 20, 0) | |
| 3091 | ||
| 3092 | while fireofgods.Size < 10 do | |
| 3093 | fireofgods.Size = fireofgods.Size + 0.1 | |
| 3094 | fireofgods.Heat = fireofgods.Heat + 0.1 | |
| 3095 | fireofgodsaccent.Rate = fireofgodsaccent.Rate + 1 | |
| 3096 | wait() | |
| 3097 | end | |
| 3098 | if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') == nil and hit.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil then
| |
| 3099 | hit:BreakJoints() | |
| 3100 | elseif hit.Parent and hit.Parent:IsA('Accessory') then
| |
| 3101 | for i,v in pairs(hit:GetChildren()) do | |
| 3102 | if v:IsA('SpecialMesh') then
| |
| 3103 | v.TextureId = "" | |
| 3104 | end | |
| 3105 | end | |
| 3106 | end | |
| 3107 | hit.BrickColor = BrickColor.new("Black")
| |
| 3108 | for i,v in pairs(hit.Parent:GetChildren()) do | |
| 3109 | if v:IsA('Shirt') or v:IsA('Pants') then
| |
| 3110 | v:Destroy() | |
| 3111 | end | |
| 3112 | end | |
| 3113 | ||
| 3114 | while fireofgods.Size > 5 do | |
| 3115 | fireofgods.Size = fireofgods.Size - 0.1 | |
| 3116 | fireofgods.Heat = fireofgods.Heat - 0.1 | |
| 3117 | wait() | |
| 3118 | end | |
| 3119 | fireofgods:Destroy() | |
| 3120 | if hit.Parent then | |
| 3121 | if hit.Parent:FindFirstChildOfClass('Humanoid') == nil and hit.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil then
| |
| 3122 | local p = hit | |
| 3123 | 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) | |
| 3124 | hit:Remove() | |
| 3125 | elseif hit.Parent:FindFirstChildOfClass('Humanoid') ~= nil then
| |
| 3126 | print(hit.Name) | |
| 3127 | if hit.Name == "Torso" or hit.Name == "Head" then | |
| 3128 | print('ohhh YAAAA')
| |
| 3129 | hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 3130 | end | |
| 3131 | wait() | |
| 3132 | killz(hit.Parent,hit.Name,nil,nil,false,false,true) | |
| 3133 | end | |
| 3134 | end | |
| 3135 | end) | |
| 3136 | coru(tgt) | |
| 3137 | end | |
| 3138 | end) | |
| 3139 | local explosionaccenttimeout = coroutine.wrap(function() | |
| 3140 | wait(0.2) | |
| 3141 | for i, exploodn in pairs(exppart:GetChildren()) do | |
| 3142 | exploodn.Enabled = false | |
| 3143 | end | |
| 3144 | wait(2) | |
| 3145 | for i, exploodn in pairs(exppart:GetChildren()) do | |
| 3146 | exploodn:Remove() | |
| 3147 | end | |
| 3148 | end) | |
| 3149 | explosionaccenttimeout() | |
| 3150 | for i,v in pairs(knofe:GetChildren()) do | |
| 3151 | if v:IsA('BasePart') then
| |
| 3152 | v.Transparency = 1 | |
| 3153 | end | |
| 3154 | end | |
| 3155 | exp.AncestryChanged:connect(function() knofe:Destroy() end) | |
| 3156 | coru() | |
| 3157 | end | |
| 3158 | end) | |
| 3159 | if finishnum == 1 then | |
| 3160 | for i= 0,1,0.1 do | |
| 3161 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 3162 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 3163 | wait(0.001) | |
| 3164 | end | |
| 3165 | else | |
| 3166 | wait(0.1) | |
| 3167 | end | |
| 3168 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 3169 | for i,v in pairs(obj1:GetChildren()) do | |
| 3170 | if v:IsA('BasePart') then
| |
| 3171 | v.Transparency = 0 | |
| 3172 | end | |
| 3173 | end | |
| 3174 | weld2:Destroy() | |
| 3175 | rightshoulderz:Clone().Parent = me.Torso | |
| 3176 | end | |
| 3177 | acting = false | |
| 3178 | canClick = true | |
| 3179 | end) | |
| 3180 | coru() | |
| 3181 | end | |
| 3182 | ||
| 3183 | function fireworkit() | |
| 3184 | local coru = coroutine.wrap(function() | |
| 3185 | acting = true | |
| 3186 | local ree = 1 | |
| 3187 | if finishnum > 1 then | |
| 3188 | ree = 3 | |
| 3189 | end | |
| 3190 | for i=1,ree do | |
| 3191 | local weld2 = Instance.new('Weld',me["Right Arm"])
| |
| 3192 | weld2.Part0 = me["Right Arm"] | |
| 3193 | weld2.Part1 = me["Torso"] | |
| 3194 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 3195 | weld2.C0 = CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0) | |
| 3196 | audio.SoundId = "rbxassetid://166083610" | |
| 3197 | audio.PlaybackSpeed = 1 | |
| 3198 | audio.TimePosition = 0.1 | |
| 3199 | audio:Play() | |
| 3200 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
| 3201 | local knofe = obj1:Clone() | |
| 3202 | for i,v in pairs(obj1:GetChildren()) do | |
| 3203 | if v:IsA('BasePart') then
| |
| 3204 | v.Transparency = 1 | |
| 3205 | end | |
| 3206 | end | |
| 3207 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 3208 | sound.Volume = 0.25 | |
| 3209 | sound.EmitterSize = 200 | |
| 3210 | sound.MaxDistance = 300 | |
| 3211 | sound.SoundId = 'rbxassetid://551051176' | |
| 3212 | sound:Play() | |
| 3213 | knofe.Parent = workspace | |
| 3214 | knofe.Name = "Projectile" | |
| 3215 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
| 3216 | local partic = Instance.new('ParticleEmitter',knofe.Grab)
| |
| 3217 | 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))})
| |
| 3218 | partic.LightEmission = 0.5 | |
| 3219 | partic.LightInfluence = 0 | |
| 3220 | partic.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5),NumberSequenceKeypoint.new(1,0.15)})
| |
| 3221 | partic.Rotation = NumberRange.new(0,90) | |
| 3222 | partic.SpreadAngle = Vector2.new(5,5) | |
| 3223 | partic.Speed = NumberRange.new(20) | |
| 3224 | partic.Texture = 'rbxassetid://603193846' | |
| 3225 | partic.EmissionDirection = Enum.NormalId.Left | |
| 3226 | partic.Lifetime = NumberRange.new(0.5,1) | |
| 3227 | partic.Rate = 100 | |
| 3228 | local heck = Instance.new('BodyVelocity',knofe.Grab)
| |
| 3229 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*240 | |
| 3230 | local coru=coroutine.wrap(function() | |
| 3231 | wait(1.2) | |
| 3232 | sound:Destroy() | |
| 3233 | local sound2 = Instance.new('Sound',workspace)
| |
| 3234 | sound2.SoundId = 'rbxassetid://138080762' | |
| 3235 | sound2:Play() | |
| 3236 | if heck then | |
| 3237 | heck:Destroy() | |
| 3238 | end | |
| 3239 | for i,v in pairs(knofe:GetChildren()) do | |
| 3240 | v.Anchored = true | |
| 3241 | end | |
| 3242 | partic.Enabled = false | |
| 3243 | local colorscheme = math.random(1,4) | |
| 3244 | --1 - red & orange | |
| 3245 | --2 - blue & pink | |
| 3246 | --3 - green & purple | |
| 3247 | --4 - blue, red, white | |
| 3248 | local colar1 = Color3.fromRGB(255,0,0) | |
| 3249 | local colar2 = Color3.fromRGB(255,125,0) | |
| 3250 | local colar3 = Color3.fromRGB(255,255,255) | |
| 3251 | if colorscheme == 2 then | |
| 3252 | colar1 = Color3.fromRGB(0,132,255) | |
| 3253 | colar2 = Color3.fromRGB(243,105,255) | |
| 3254 | elseif colorscheme == 3 then | |
| 3255 | colar1 = Color3.fromRGB(76,255,0) | |
| 3256 | colar2 = Color3.fromRGB(128,0,255) | |
| 3257 | elseif colorscheme == 4 then | |
| 3258 | colar2 = Color3.fromRGB(0,132,255) | |
| 3259 | end | |
| 3260 | local partic2 = Instance.new('ParticleEmitter',knofe.Grab)
| |
| 3261 | partic2.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,colar1),ColorSequenceKeypoint.new(1,colar1)})
| |
| 3262 | partic2.LightEmission = 0.5 | |
| 3263 | partic2.LightInfluence = 0 | |
| 3264 | partic2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5),NumberSequenceKeypoint.new(1,0.1)})
| |
| 3265 | partic2.Rotation = NumberRange.new(0,90) | |
| 3266 | partic2.SpreadAngle = Vector2.new(180,180) | |
| 3267 | partic2.Speed = NumberRange.new(20) | |
| 3268 | partic2.Texture = 'rbxassetid://603193846' | |
| 3269 | partic2.EmissionDirection = Enum.NormalId.Right | |
| 3270 | partic2.Lifetime = NumberRange.new(2,2.5) | |
| 3271 | partic2.Rate = 1000 | |
| 3272 | partic2.Drag = 1 | |
| 3273 | local partic3 = partic2:Clone() | |
| 3274 | partic3.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,colar2),ColorSequenceKeypoint.new(1,colar2)})
| |
| 3275 | partic3.Parent = knofe.Grab | |
| 3276 | if colorscheme == 4 then | |
| 3277 | local partic4 = partic2:Clone() | |
| 3278 | partic4.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,colar3),ColorSequenceKeypoint.new(1,colar3)})
| |
| 3279 | partic4.Parent = knofe.Grab | |
| 3280 | end | |
| 3281 | wait(1) | |
| 3282 | for i,v in pairs(knofe.Grab:GetChildren()) do | |
| 3283 | if v:IsA('ParticleEmitter') then
| |
| 3284 | v.Enabled = false | |
| 3285 | end | |
| 3286 | end | |
| 3287 | sound:Destroy() | |
| 3288 | wait(2) | |
| 3289 | knofe:Destroy() | |
| 3290 | end) | |
| 3291 | coru() | |
| 3292 | wait(0.1) | |
| 3293 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 3294 | for i,v in pairs(obj1:GetChildren()) do | |
| 3295 | if v:IsA('BasePart') then
| |
| 3296 | v.Transparency = 0 | |
| 3297 | end | |
| 3298 | end | |
| 3299 | weld2:Destroy() | |
| 3300 | rightshoulderz:Clone().Parent = me.Torso | |
| 3301 | end | |
| 3302 | acting = false | |
| 3303 | canClick = true | |
| 3304 | end) | |
| 3305 | coru() | |
| 3306 | end | |
| 3307 | ||
| 3308 | function paralyze() | |
| 3309 | local coru = coroutine.wrap(function() | |
| 3310 | if paralyzed == true then return end | |
| 3311 | paralyzed = true | |
| 3312 | local arm = me["Right Arm"] | |
| 3313 | local tors = grabbed.Torso | |
| 3314 | local arm2 = me["Left Arm"] | |
| 3315 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end
| |
| 3316 | doing = true | |
| 3317 | local weld2 = arm:FindFirstChildOfClass('Weld')
| |
| 3318 | local weld3 = arm2:FindFirstChildOfClass('Weld')
| |
| 3319 | local humanroot = me.HumanoidRootPart | |
| 3320 | for i = 0,1,0.075 do | |
| 3321 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-2, 0, -1.5), i) | |
| 3322 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1, -0.5)* CFrame.Angles(-1.4, 0, 1.1), i) | |
| 3323 | wait(0.01) | |
| 3324 | end | |
| 3325 | for i = 0,1,0.30 do | |
| 3326 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-0.75, 0, -1.75), i) | |
| 3327 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1, -0.5)* CFrame.Angles(-1.4, 0, 1.1), i) | |
| 3328 | wait(0.01) | |
| 3329 | end | |
| 3330 | killz(grabbed,'Left Leg') | |
| 3331 | killz(grabbed,'Left Arm') | |
| 3332 | killz(grabbed,'Right Leg') | |
| 3333 | killz(grabbed,'Right Arm') | |
| 3334 | ||
| 3335 | for i, v in pairs(grabbed:GetChildren()) do | |
| 3336 | if v.Name == "Part" then | |
| 3337 | v.CanCollide = false | |
| 3338 | end | |
| 3339 | end | |
| 3340 | ||
| 3341 | audio:Stop() | |
| 3342 | audio.SoundId = "rbxassetid://2801263" | |
| 3343 | tone = math.random(1, 3) | |
| 3344 | if tone == 1 then audio.PlaybackSpeed = 0.8 audio.TimePosition = 0 end | |
| 3345 | if tone == 2 then audio.PlaybackSpeed = 1 audio.TimePosition = 0 end | |
| 3346 | if tone == 3 then audio.PlaybackSpeed = 1.2 audio.TimePosition = 0 end | |
| 3347 | audio:Play() | |
| 3348 | ||
| 3349 | local bleedpart = Instance.new("Part", grabbed)
| |
| 3350 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 3351 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 3352 | bleedpart.CanCollide = false | |
| 3353 | bleedpart.Position = grabbed.Head.Position + Vector3.new(0, 1, 0) | |
| 3354 | bleedpart.Transparency = 1 | |
| 3355 | ||
| 3356 | local bleedpartweld = Instance.new("Weld", grabbed.Torso)
| |
| 3357 | bleedpartweld.Part0 = grabbed.Torso | |
| 3358 | bleedpartweld.Part1 = bleedpart | |
| 3359 | bleedpartweld.C0 = CFrame.Angles(-1, 0, -0.35) * CFrame.new(0, 1, 0.8) | |
| 3360 | local cuntruu=coroutine.wrap(function() | |
| 3361 | bleed(bleedpart) | |
| 3362 | end) | |
| 3363 | local thicc = coroutine.wrap(function() | |
| 3364 | wait(3) | |
| 3365 | bleedpart:Remove() | |
| 3366 | end) | |
| 3367 | cuntruu() | |
| 3368 | thicc() | |
| 3369 | ||
| 3370 | for i = 0,1,0.075 do | |
| 3371 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-1.5, 0, -1.3), i) | |
| 3372 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1, -0.5)* CFrame.Angles(-1.5, 0, 1.1), i) | |
| 3373 | wait(0.01) | |
| 3374 | end | |
| 3375 | acting = true | |
| 3376 | canClick = true | |
| 3377 | doing = false | |
| 3378 | end) | |
| 3379 | coru() | |
| 3380 | end | |
| 3381 | ||
| 3382 | function explode() | |
| 3383 | local coru = coroutine.wrap(function() | |
| 3384 | acting = true | |
| 3385 | for i=1,finishnum do | |
| 3386 | local weld2 = Instance.new('Weld',me["Right Arm"])
| |
| 3387 | weld2.Part0 = me["Right Arm"] | |
| 3388 | weld2.Part1 = me["Torso"] | |
| 3389 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 3390 | if finishnum == 1 then | |
| 3391 | for i = 0,1,0.05 do | |
| 3392 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 3393 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0),i) | |
| 3394 | wait(0.01) | |
| 3395 | end | |
| 3396 | end | |
| 3397 | weld2.C0 = CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0) | |
| 3398 | audio.SoundId = "rbxassetid://166083610" | |
| 3399 | audio.PlaybackSpeed = 1 | |
| 3400 | audio.TimePosition = 0.1 | |
| 3401 | audio:Play() | |
| 3402 | if finishnum == 1 then | |
| 3403 | for i = 0,1,0.5 do | |
| 3404 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 3405 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0),i) | |
| 3406 | wait(0.001) | |
| 3407 | end | |
| 3408 | end | |
| 3409 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
| 3410 | local knofe = obj1:Clone() | |
| 3411 | for i,v in pairs(obj1:GetChildren()) do | |
| 3412 | if v:IsA('BasePart') then
| |
| 3413 | v.Transparency = 1 | |
| 3414 | end | |
| 3415 | end | |
| 3416 | knofe.Parent = workspace | |
| 3417 | knofe.Name = "Projectile" | |
| 3418 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
| 3419 | knofe:FindFirstChild("Trail", true).Enabled = false
| |
| 3420 | local heck = Instance.new('BodyVelocity',knofe.Grab)
| |
| 3421 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120 | |
| 3422 | local coru = coroutine.wrap(function() | |
| 3423 | wait(0.45) | |
| 3424 | if heck then | |
| 3425 | heck:Destroy() | |
| 3426 | end | |
| 3427 | end) | |
| 3428 | coru() | |
| 3429 | knofe["big ass knife"].Touched:connect(function(hit) | |
| 3430 | if hit.Parent ~= me and hit.Parent.Parent ~= me and hit.Transparency < 1 and knofe.Grab.CanCollide == false then | |
| 3431 | heck.Velocity = Vector3.new(0,0,0) | |
| 3432 | heck:Destroy() | |
| 3433 | for i,v in pairs(knofe:GetChildren()) do | |
| 3434 | if v:IsA('BasePart') then
| |
| 3435 | v.CanCollide = true | |
| 3436 | end | |
| 3437 | end | |
| 3438 | local hum = hit.Parent:FindFirstChildOfClass('Humanoid')
| |
| 3439 | if hum == nil then | |
| 3440 | hum = hit.Parent.Parent:FindFirstChildOfClass('Humanoid')
| |
| 3441 | end | |
| 3442 | if hum then | |
| 3443 | tone = math.random(1, 3) | |
| 3444 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 3445 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
| 3446 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
| 3447 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
| 3448 | sound.PlaybackSpeed = 1 | |
| 3449 | sound:Play() | |
| 3450 | else | |
| 3451 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 3452 | sound.SoundId = 'rbxassetid://267585646' | |
| 3453 | sound:Play() | |
| 3454 | end | |
| 3455 | if knofe then | |
| 3456 | local coru = coroutine.wrap(function() | |
| 3457 | if hit then | |
| 3458 | local uno = Instance.new('Part',workspace)
| |
| 3459 | local dos = Instance.new('Part',workspace)
| |
| 3460 | uno.CFrame = hit.CFrame | |
| 3461 | dos.CFrame = knofe["big ass knife"].CFrame | |
| 3462 | local weld = Instance.new('Weld',knofe["big ass knife"])
| |
| 3463 | weld.Part0 = hit | |
| 3464 | weld.Part1 = knofe["big ass knife"] | |
| 3465 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 3466 | uno:Destroy() | |
| 3467 | dos:Destroy() | |
| 3468 | end | |
| 3469 | end) | |
| 3470 | coru() | |
| 3471 | end | |
| 3472 | local coru = coroutine.wrap(function() | |
| 3473 | for i=1,15,0.7 do | |
| 3474 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 3475 | if knofe then | |
| 3476 | if knofe.serration.BrickColor == BrickColor.new('Really red') then
| |
| 3477 | for i, v in pairs(knofe:GetChildren()) do | |
| 3478 | if v.Name == "big ass knife" or v.Name == "serration" or v.Name == "knifetip1" or v.Name == "fricc" then | |
| 3479 | v.BrickColor = BrickColor.new('Lily white')
| |
| 3480 | v.Material = Enum.Material.SmoothPlastic | |
| 3481 | end | |
| 3482 | end | |
| 3483 | else | |
| 3484 | for i,v in pairs(knofe:GetChildren()) do | |
| 3485 | if v.Name == "big ass knife" or v.Name == "serration" or v.Name == "knifetip1" or v.Name == "fricc" then | |
| 3486 | v.BrickColor = BrickColor.new('Really red')
| |
| 3487 | v.Material = Enum.Material.Neon | |
| 3488 | sound.SoundId = 'rbxassetid://300473653' | |
| 3489 | sound.Volume = 0.75 | |
| 3490 | sound.TimePosition = 0.05 | |
| 3491 | sound.EmitterSize = 25 | |
| 3492 | sound.PlaybackSpeed = 1 | |
| 3493 | sound:Play() | |
| 3494 | end | |
| 3495 | end | |
| 3496 | end | |
| 3497 | wait(1/i) | |
| 3498 | sound:Destroy() | |
| 3499 | end | |
| 3500 | end | |
| 3501 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 3502 | sound.Name = "BOOM" | |
| 3503 | sound.EmitterSize = 25 | |
| 3504 | sound.SoundId = 'rbxassetid://12222084' | |
| 3505 | sound.TimePosition = 0.1 | |
| 3506 | sound.Volume = 0.5 | |
| 3507 | sound:Play() | |
| 3508 | local exppart = Instance.new("Part", game.Workspace)
| |
| 3509 | exppart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 3510 | exppart.Anchored = true | |
| 3511 | exppart.CanCollide = false | |
| 3512 | exppart.CFrame = CFrame.new(knofe.Grab.CFrame.p) | |
| 3513 | exppart.Transparency = 1 | |
| 3514 | local expaccent = Instance.new("ParticleEmitter", exppart)
| |
| 3515 | expaccent.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 0))})
| |
| 3516 | expaccent.LightEmission = 0.2 | |
| 3517 | expaccent.LightInfluence = 0.3 | |
| 3518 | expaccent.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0)})
| |
| 3519 | expaccent.Acceleration = Vector3.new(0, -8, 0) | |
| 3520 | expaccent.Drag = 15 | |
| 3521 | expaccent.LockedToPart = true | |
| 3522 | expaccent.Lifetime = NumberRange.new(0.5, 1.5) | |
| 3523 | expaccent.Rate = 2000 | |
| 3524 | expaccent.Speed = NumberRange.new(10, 150) | |
| 3525 | expaccent.SpreadAngle = Vector2.new(360, 360) | |
| 3526 | ||
| 3527 | local exp = Instance.new('Explosion',game.Workspace)
| |
| 3528 | exp.Position = knofe["big ass knife"].Position | |
| 3529 | exp.ExplosionType = Enum.ExplosionType.NoCraters | |
| 3530 | exp.BlastRadius = 10 | |
| 3531 | exp.BlastPressure = 100000 | |
| 3532 | exp.DestroyJointRadiusPercent = 1 | |
| 3533 | exp.Hit:connect(function(hit) | |
| 3534 | if hit.Parent and hit.Parent ~= me and hit.Parent:FindFirstChildOfClass('Humanoid') then
| |
| 3535 | if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Name == "Torso" or hit.Name == "Head" then
| |
| 3536 | hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 3537 | end | |
| 3538 | wait(0.001) | |
| 3539 | local coru=coroutine.wrap(function() | |
| 3540 | killz(hit.Parent,'Head',knofe,exp) | |
| 3541 | end) | |
| 3542 | coru() | |
| 3543 | elseif hit.Parent and hit.Parent ~= workspace and hit.Parent ~= me then | |
| 3544 | if hit.Parent.Name ~= "Projectile" then | |
| 3545 | hit.Parent:BreakJoints() | |
| 3546 | end | |
| 3547 | elseif hit.Parent and hit.Parent ~= me then | |
| 3548 | hit:BreakJoints() | |
| 3549 | end | |
| 3550 | end) | |
| 3551 | local explosionaccenttimeout = coroutine.wrap(function() | |
| 3552 | wait(0.2) | |
| 3553 | expaccent.Enabled = false | |
| 3554 | wait(2) | |
| 3555 | exppart:Remove() | |
| 3556 | end) | |
| 3557 | explosionaccenttimeout() | |
| 3558 | for i,v in pairs(knofe:GetChildren()) do | |
| 3559 | if v:IsA('BasePart') then
| |
| 3560 | v.Transparency = 1 | |
| 3561 | end | |
| 3562 | end | |
| 3563 | exp.AncestryChanged:connect(function() knofe:Destroy() end) | |
| 3564 | end) | |
| 3565 | coru() | |
| 3566 | end | |
| 3567 | end) | |
| 3568 | if finishnum == 1 then | |
| 3569 | for i= 0,1,0.1 do | |
| 3570 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 3571 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 3572 | wait(0.001) | |
| 3573 | end | |
| 3574 | else | |
| 3575 | wait(0.1) | |
| 3576 | end | |
| 3577 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 3578 | for i,v in pairs(obj1:GetChildren()) do | |
| 3579 | if v:IsA('BasePart') then
| |
| 3580 | v.Transparency = 0 | |
| 3581 | end | |
| 3582 | end | |
| 3583 | weld2:Destroy() | |
| 3584 | rightshoulderz:Clone().Parent = me.Torso | |
| 3585 | end | |
| 3586 | acting = false | |
| 3587 | canClick = true | |
| 3588 | end) | |
| 3589 | coru() | |
| 3590 | end | |
| 3591 | ||
| 3592 | function release() | |
| 3593 | if grabbed.Torso:FindFirstChild("TargetWeld") == nil or grabbed:FindFirstChildOfClass('Humanoid').Health <= 0 then return end
| |
| 3594 | targetweld = grabbed.Torso.TargetWeld | |
| 3595 | local ree= grabbed:FindFirstChild("Left Arm")
| |
| 3596 | targetweld2 = nil | |
| 3597 | if ree and ree:FindFirstChild("Weld") then
| |
| 3598 | targetweld2 = ree.Weld | |
| 3599 | end | |
| 3600 | for i, v in pairs(grabbed:GetChildren()) do | |
| 3601 | if v.Name == "Part" then | |
| 3602 | v.CanCollide = true | |
| 3603 | end | |
| 3604 | end | |
| 3605 | paralyzed = false | |
| 3606 | local doit = coroutine.wrap(function() | |
| 3607 | local arm = me["Right Arm"] | |
| 3608 | local tors = grabbed.Torso | |
| 3609 | local arm2 = me["Left Arm"] | |
| 3610 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end
| |
| 3611 | doing = true | |
| 3612 | local weld2 = arm:FindFirstChildOfClass('Weld')
| |
| 3613 | local weld3 = arm2:FindFirstChildOfClass('Weld')
| |
| 3614 | local humanroot = me.HumanoidRootPart | |
| 3615 | ||
| 3616 | if grabbed:FindFirstChildOfClass('Humanoid') then
| |
| 3617 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = false
| |
| 3618 | end | |
| 3619 | ||
| 3620 | rightshoulderz:Clone().Parent = me.Torso | |
| 3621 | leftshoulderz:Clone().Parent = me.Torso | |
| 3622 | if grabbed:FindFirstChildOfClass('Humanoid') then
| |
| 3623 | grabbed:FindFirstChildOfClass('Humanoid').Name = "Humanoid"
| |
| 3624 | grabbed:FindFirstChildOfClass('Humanoid').JumpPower = 50
| |
| 3625 | grabbed:FindFirstChildOfClass('Humanoid').WalkSpeed = 16
| |
| 3626 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = false
| |
| 3627 | end | |
| 3628 | grabbed = nil | |
| 3629 | ||
| 3630 | if humanroot:FindFirstChild('Holder') then
| |
| 3631 | humanroot.Holder:Destroy() | |
| 3632 | end | |
| 3633 | ||
| 3634 | for i = 0,1,0.1 do | |
| 3635 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 3636 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 3637 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0),i) | |
| 3638 | targetweld.C0 = targetweld.C0:lerp(CFrame.new(0, 1.5, 0)*CFrame.Angles(0, 0, 0), i) | |
| 3639 | if targetweld2 then | |
| 3640 | targetweld2.C0 = targetweld2.C0:lerp(CFrame.new(-1.5, 0, 0)*CFrame.Angles(0, 0, 0), i) | |
| 3641 | end | |
| 3642 | wait(0.01) | |
| 3643 | end | |
| 3644 | ||
| 3645 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0.2) | |
| 3646 | weld2:Destroy() | |
| 3647 | weld3:Destroy() | |
| 3648 | targetweld:Remove() | |
| 3649 | if targetweld2 then | |
| 3650 | targetweld2:Remove() | |
| 3651 | end | |
| 3652 | if rightshoulder then | |
| 3653 | rightshoulder:Clone().Parent = tors | |
| 3654 | end | |
| 3655 | if leftshoulder then | |
| 3656 | leftshoulder:Clone().Parent = tors | |
| 3657 | end | |
| 3658 | headweld:Clone().Parent = tors | |
| 3659 | rightshoulderz:Clone().Parent = me.Torso | |
| 3660 | leftshoulderz:Clone().Parent = me.Torso | |
| 3661 | acting = false | |
| 3662 | canClick = true | |
| 3663 | doing = false | |
| 3664 | end) | |
| 3665 | doit() | |
| 3666 | end | |
| 3667 | ||
| 3668 | function stabwithpassion() | |
| 3669 | local doit = coroutine.wrap(function() | |
| 3670 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') and me:FindFirstChild('HumanoidRootPart') and me:FindFirstChild('Left Arm') then
| |
| 3671 | acting = true | |
| 3672 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed + 10
| |
| 3673 | local arm = me["Right Arm"] | |
| 3674 | local tors = me.Torso | |
| 3675 | local arm2 = me["Left Arm"] | |
| 3676 | local humanroot = me.HumanoidRootPart | |
| 3677 | local weld = Instance.new('Weld',tors)
| |
| 3678 | weld.Part0 = tors | |
| 3679 | weld.Part1 = humanroot | |
| 3680 | weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0, 0, 0) | |
| 3681 | local weld2 = Instance.new('Weld',arm)
| |
| 3682 | weld2.Part0 = arm | |
| 3683 | weld2.Part1 = tors | |
| 3684 | weld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
| 3685 | local weld3 = Instance.new('Weld',arm2)
| |
| 3686 | weld3.Part0 = arm2 | |
| 3687 | weld3.Part1 = tors | |
| 3688 | weld3.C0 = CFrame.new(1.5,0,-0.3) * CFrame.Angles(0.3,0.1,0) | |
| 3689 | ||
| 3690 | for i = 0,1,0.15 do | |
| 3691 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end
| |
| 3692 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(20),0),i) | |
| 3693 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.2,1.3,0.4)*CFrame.Angles(0.5,0,-1.2),i) | |
| 3694 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.fromEulerAnglesXYZ(1.55, math.rad(90), -1.55) * CFrame.new(0, 0.95, 0), i) | |
| 3695 | wait(0.01) | |
| 3696 | end | |
| 3697 | wait(0.001) | |
| 3698 | trail.Enabled = true | |
| 3699 | stabbing = true | |
| 3700 | audio2.SoundId = 'rbxassetid://608537390' | |
| 3701 | audio2:Play() | |
| 3702 | for i = 0,1,0.2 do | |
| 3703 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end
| |
| 3704 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(-45),0),i) | |
| 3705 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.6,0.8,-1)*CFrame.Angles(math.rad(-90),0,-1),i) | |
| 3706 | wait(0.01) | |
| 3707 | end | |
| 3708 | trail.Enabled = false | |
| 3709 | wait(0.1) | |
| 3710 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed - 10
| |
| 3711 | stabbing = false | |
| 3712 | wait(0.001) | |
| 3713 | for i = 0,1,0.075 do | |
| 3714 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end
| |
| 3715 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,0,0),i) | |
| 3716 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),i) | |
| 3717 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0)*CFrame.Angles(0,0,0),i) | |
| 3718 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0), i) | |
| 3719 | wait(0.01) | |
| 3720 | end | |
| 3721 | weld:Destroy() | |
| 3722 | weld2:Destroy() | |
| 3723 | weld3:Destroy() | |
| 3724 | torsojoint:Clone().Parent = humanroot | |
| 3725 | rightshoulderz:Clone().Parent = me.Torso | |
| 3726 | leftshoulderz:Clone().Parent = me.Torso | |
| 3727 | canClick = true | |
| 3728 | hit = false | |
| 3729 | acting = false | |
| 3730 | end | |
| 3731 | end) | |
| 3732 | doit() | |
| 3733 | end | |
| 3734 | ||
| 3735 | function stab() | |
| 3736 | local doit = coroutine.wrap(function() | |
| 3737 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') and me:FindFirstChild('HumanoidRootPart') and me:FindFirstChild('Left Arm') then
| |
| 3738 | acting = true | |
| 3739 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed + 3
| |
| 3740 | local arm = me["Right Arm"] | |
| 3741 | local tors = me.Torso | |
| 3742 | local arm2 = me["Left Arm"] | |
| 3743 | local humanroot = me.HumanoidRootPart | |
| 3744 | local weld = Instance.new('Weld',tors)
| |
| 3745 | weld.Part0 = tors | |
| 3746 | weld.Part1 = humanroot | |
| 3747 | weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0, 0, 0) | |
| 3748 | local weld2 = Instance.new('Weld',arm)
| |
| 3749 | weld2.Part0 = arm | |
| 3750 | weld2.Part1 = tors | |
| 3751 | weld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
| 3752 | local weld3 = Instance.new('Weld',arm2)
| |
| 3753 | weld3.Part0 = arm2 | |
| 3754 | weld3.Part1 = tors | |
| 3755 | weld3.C0 = CFrame.new(1.5,0,-0.3) * CFrame.Angles(0.3,0.1,0) | |
| 3756 | ||
| 3757 | for i = 0,1,0.1 do | |
| 3758 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end
| |
| 3759 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,0.3,0),i) | |
| 3760 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.2,1.3,0.4)*CFrame.Angles(0.5,0,-1.2),i) | |
| 3761 | wait(0.01) | |
| 3762 | end | |
| 3763 | wait(0.001) | |
| 3764 | trail.Enabled = true | |
| 3765 | stabbing = true | |
| 3766 | audio2.SoundId = 'rbxassetid://608537390' | |
| 3767 | audio2:Play() | |
| 3768 | for i = 0,1,0.25 do | |
| 3769 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end
| |
| 3770 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,-0.3,0),i) | |
| 3771 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.6,0.8,0.5)*CFrame.Angles(-0.5,0,-0.5),i) | |
| 3772 | wait(0.01) | |
| 3773 | end | |
| 3774 | trail.Enabled = false | |
| 3775 | wait(0.1) | |
| 3776 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed - 3
| |
| 3777 | for i = 0,1,0.25 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,0.3,0),i) | |
| 3780 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.6,-0.3)*CFrame.Angles(0.5,0,-0.5),i) | |
| 3781 | wait(0.01) | |
| 3782 | end | |
| 3783 | stabbing = false | |
| 3784 | wait(0.001) | |
| 3785 | for i = 0,1,0.05 do | |
| 3786 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end
| |
| 3787 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,0,0),i) | |
| 3788 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),i) | |
| 3789 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0)*CFrame.Angles(0,0,0),i) | |
| 3790 | wait(0.01) | |
| 3791 | end | |
| 3792 | weld:Destroy() | |
| 3793 | weld2:Destroy() | |
| 3794 | weld3:Destroy() | |
| 3795 | torsojoint:Clone().Parent = humanroot | |
| 3796 | rightshoulderz:Clone().Parent = me.Torso | |
| 3797 | leftshoulderz:Clone().Parent = me.Torso | |
| 3798 | canClick = true | |
| 3799 | hit = false | |
| 3800 | acting = false | |
| 3801 | end | |
| 3802 | end) | |
| 3803 | doit() | |
| 3804 | end | |
| 3805 | function hardrelease() | |
| 3806 | rightshoulderz:Clone().Parent = me.Torso | |
| 3807 | leftshoulderz:Clone().Parent = me.Torso | |
| 3808 | if me:FindFirstChild('Right Arm') then
| |
| 3809 | for i,v in pairs(me["Right Arm"]:GetChildren()) do | |
| 3810 | if v:IsA('Weld') then
| |
| 3811 | v:Destroy() | |
| 3812 | end | |
| 3813 | end | |
| 3814 | end | |
| 3815 | if me:FindFirstChild('Left Arm') then
| |
| 3816 | for i,v in pairs(me["Left Arm"]:GetChildren()) do | |
| 3817 | if v:IsA('Weld') then
| |
| 3818 | v:Destroy() | |
| 3819 | end | |
| 3820 | end | |
| 3821 | end | |
| 3822 | acting = false | |
| 3823 | canClick = true | |
| 3824 | doing = false | |
| 3825 | grabbed = nil | |
| 3826 | end | |
| 3827 | function unequip() | |
| 3828 | local doit = coroutine.wrap(function() | |
| 3829 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') then
| |
| 3830 | acting = true | |
| 3831 | local arm = me["Right Arm"] | |
| 3832 | local arm2 = me["Left Arm"] | |
| 3833 | local tors = me.Torso | |
| 3834 | local weld = Instance.new('Weld',arm)
| |
| 3835 | weld.Part0 = arm | |
| 3836 | weld.Part1 = tors | |
| 3837 | weld.C0 = CFrame.new(-1.5,0,0) | |
| 3838 | local weld2 = Instance.new("Weld", arm2)
| |
| 3839 | weld2.Part0 = arm2 | |
| 3840 | weld2.Part1 = tors | |
| 3841 | weld2.C0 = CFrame.new(1.5, 0, 0) | |
| 3842 | wait(0.001) | |
| 3843 | trail.Enabled = true | |
| 3844 | for i = 0,1,0.1 do | |
| 3845 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end
| |
| 3846 | weld.C0 = weld.C0:lerp(CFrame.new(-0.2,0.2,-0.5)*CFrame.Angles(0,-3.1,0.9),i) | |
| 3847 | weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0.6, 0) * CFrame.Angles(0,0,0.5),i) | |
| 3848 | wait(0.001) | |
| 3849 | end | |
| 3850 | trail.Enabled = false | |
| 3851 | wait(0.25) | |
| 3852 | for i = 0,1,0.1 do | |
| 3853 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end
| |
| 3854 | weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 3855 | weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0, 0), i) | |
| 3856 | wait(0.01) | |
| 3857 | end | |
| 3858 | weld:Destroy() | |
| 3859 | weld2:Remove() | |
| 3860 | if tors ~= nil then | |
| 3861 | rightshoulderz:Clone().Parent = me.Torso | |
| 3862 | leftshoulderz:Clone().Parent = me.Torso | |
| 3863 | end | |
| 3864 | acting = false | |
| 3865 | end | |
| 3866 | end) | |
| 3867 | doit() | |
| 3868 | end | |
| 3869 | ||
| 3870 | mouse.KeyDown:connect(function(key) | |
| 3871 | if usable == true then | |
| 3872 | if key == "z" then | |
| 3873 | if active == false and acting == false then | |
| 3874 | active = true | |
| 3875 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3876 | notify("KNIFE EQUIPPED",false)
| |
| 3877 | audio:Stop() | |
| 3878 | audio.SoundId = 'rbxassetid://608618332' | |
| 3879 | equip() | |
| 3880 | wait(0.6) | |
| 3881 | audio:Play() | |
| 3882 | knifeweld.Part0 = me["Right Arm"] | |
| 3883 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0) | |
| 3884 | elseif acting == false then | |
| 3885 | active = false | |
| 3886 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3887 | audio:Stop() | |
| 3888 | audio.SoundId = 'rbxassetid://608538233' | |
| 3889 | unequip() | |
| 3890 | notify("KNIFE UNEQUIPPED",false)
| |
| 3891 | wait(0.3) | |
| 3892 | audio:Play() | |
| 3893 | knifeweld.Part0 = me.Torso | |
| 3894 | knifeweld.C1 = CFrame.Angles(0,math.rad(90),0) * CFrame.new(1, 0.8, 0.55) | |
| 3895 | canClick = true | |
| 3896 | end | |
| 3897 | elseif key == "f" then | |
| 3898 | if mode == 'kill' or active == false then return end | |
| 3899 | mode = "kill" | |
| 3900 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3901 | notify("MODE || KILL || [F]",false)
| |
| 3902 | elseif key == "e" then | |
| 3903 | if mode == 'throw' or active == false then return end | |
| 3904 | mode = "throw" | |
| 3905 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3906 | notify("MODE || PUSH || [E]",false)
| |
| 3907 | elseif key == "q" then | |
| 3908 | if mode == 'release' or active == false then return end | |
| 3909 | mode = "release" | |
| 3910 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3911 | notify("MODE || RELEASE || [Q]",false)
| |
| 3912 | elseif key == "x" then | |
| 3913 | if mode == 'stab' or active == false or acting == true then return end | |
| 3914 | mode = "stab" | |
| 3915 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3916 | notify("MODE || STAB || [X]",false)
| |
| 3917 | elseif key == "c" then | |
| 3918 | if mode == 'fling' or active == false or acting == true then return end | |
| 3919 | mode = "fling" | |
| 3920 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3921 | notify("MODE || THROW || [C]",false)
| |
| 3922 | elseif key == "b" then | |
| 3923 | if mode == 'instasplode' or active == false or acting == true then return end | |
| 3924 | mode = "instasplode" | |
| 3925 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3926 | notify("MODE || MOLOTOV || [B]",false)
| |
| 3927 | elseif key == "r" then | |
| 3928 | if mode == 'paralyze' or active == false then return end | |
| 3929 | mode = "paralyze" | |
| 3930 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3931 | notify("MODE || PARALYZE || [R]",false)
| |
| 3932 | elseif key == "v" then | |
| 3933 | if mode == 'explode' or active == false or acting == true then return end | |
| 3934 | mode = "explode" | |
| 3935 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3936 | notify("MODE || EXPLODE || [V]",false)
| |
| 3937 | elseif key == "k" then | |
| 3938 | if mode == 'suicide' or active == false or acting == true then return end | |
| 3939 | mode = "suicide" | |
| 3940 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3941 | notify("MODE || SUICIDE || [K]",false)
| |
| 3942 | elseif key == "h" then | |
| 3943 | if mode == 'firework' or active == false or acting == true then return end | |
| 3944 | mode = "firework" | |
| 3945 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3946 | notify("MODE || FIREWORK || [H]",false)
| |
| 3947 | elseif key == "g" then | |
| 3948 | if mode == 'finish' or active == false then return end | |
| 3949 | mode = "finish" | |
| 3950 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3951 | local welp = "ON" | |
| 3952 | if finishnum == 1 then | |
| 3953 | welp = "OFF" | |
| 3954 | end | |
| 3955 | notify("MODE || FINISH || [G] || "..welp,false)
| |
| 3956 | elseif key == "n" then | |
| 3957 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3958 | if zombiemode == false then | |
| 3959 | notify("ZOMBIE MODE ON || [N]",false)
| |
| 3960 | zombiemode = true | |
| 3961 | else | |
| 3962 | notify("ZOMBIE MODE OFF || [N]",false)
| |
| 3963 | zombiemode = false | |
| 3964 | end | |
| 3965 | elseif key == "m" then | |
| 3966 | if finishnum == 1 then | |
| 3967 | finishnum = 15 | |
| 3968 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3969 | notify("PSYCHOPATH MODE ON || [M]",false)
| |
| 3970 | if cancolorfilter then | |
| 3971 | local Sp00kyGui = Instance.new("ScreenGui")
| |
| 3972 | local ImageLabel = Instance.new("ImageLabel")
| |
| 3973 | ||
| 3974 | -- Properties | |
| 3975 | ||
| 3976 | Sp00kyGui.Parent = playergui | |
| 3977 | Sp00kyGui.Name = "REEEEEEEE" | |
| 3978 | ||
| 3979 | ImageLabel.Parent = Sp00kyGui | |
| 3980 | ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 3981 | ImageLabel.BackgroundTransparency = 1 | |
| 3982 | ImageLabel.Size = UDim2.new(1, 0, 1, 0) | |
| 3983 | ImageLabel.Image = "rbxassetid://74443700" | |
| 3984 | ImageLabel.ImageColor3 = Color3.new(1, 0, 0) | |
| 3985 | end | |
| 3986 | if canbackgroundmusic == true then | |
| 3987 | local sound = Instance.new('Sound',playergui)
| |
| 3988 | sound.Name = 'PSYCHOPAAAATH' | |
| 3989 | sound.SoundId = 'rbxassetid://220875210' | |
| 3990 | sound.Looped = true | |
| 3991 | sound.Volume = 0.5 | |
| 3992 | sound:Play() | |
| 3993 | end | |
| 3994 | else | |
| 3995 | finishnum = 1 | |
| 3996 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end
| |
| 3997 | notify("PSYCHOPATH MODE OFF || [M]",false)
| |
| 3998 | for i,v in pairs(playergui:GetChildren()) do | |
| 3999 | if v.Name == "REEEEEEEE" then | |
| 4000 | v:Destroy() | |
| 4001 | end | |
| 4002 | end | |
| 4003 | local thisniggarighthere = playergui:FindFirstChild('PSYCHOPAAAATH')
| |
| 4004 | if thisniggarighthere then thisniggarighthere:Destroy() end | |
| 4005 | end | |
| 4006 | end | |
| 4007 | end | |
| 4008 | end) | |
| 4009 | ||
| 4010 | mouse.Button1Down:connect(function() | |
| 4011 | if active == false or usable == false then return end | |
| 4012 | if canClick == true and acting == false then | |
| 4013 | if mode == "stab" and finishnum == 1 then | |
| 4014 | canClick = false | |
| 4015 | stab() | |
| 4016 | elseif mode == "stab" and finishnum == 15 then | |
| 4017 | canClick = false | |
| 4018 | stabwithpassion() | |
| 4019 | elseif mode == "fling" then | |
| 4020 | canClick = false | |
| 4021 | fling() | |
| 4022 | elseif mode == "explode" then | |
| 4023 | canClick = false | |
| 4024 | explode() | |
| 4025 | elseif mode == "instasplode" then | |
| 4026 | canClick = false | |
| 4027 | instasplode() | |
| 4028 | elseif mode == "finish" then | |
| 4029 | canClick = false | |
| 4030 | finish() | |
| 4031 | elseif mode == "suicide" then | |
| 4032 | canClick = false | |
| 4033 | kysnigga() | |
| 4034 | elseif mode == "firework" then | |
| 4035 | canClick = false | |
| 4036 | fireworkit() | |
| 4037 | else | |
| 4038 | canClick = false | |
| 4039 | grab() | |
| 4040 | end | |
| 4041 | else | |
| 4042 | if grabbed ~= nil and doing == false then | |
| 4043 | if mode == "release" then | |
| 4044 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 4045 | release() | |
| 4046 | else | |
| 4047 | hardrelease() | |
| 4048 | end | |
| 4049 | elseif mode == "kill" then | |
| 4050 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 4051 | kill() | |
| 4052 | else | |
| 4053 | hardrelease() | |
| 4054 | end | |
| 4055 | elseif mode == "paralyze" then | |
| 4056 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 4057 | paralyze() | |
| 4058 | else | |
| 4059 | hardrelease() | |
| 4060 | end | |
| 4061 | elseif mode == "throw" then | |
| 4062 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 4063 | throw() | |
| 4064 | else | |
| 4065 | hardrelease() | |
| 4066 | end | |
| 4067 | elseif mode == "explode" then | |
| 4068 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 4069 | throw() | |
| 4070 | else | |
| 4071 | hardrelease() | |
| 4072 | end | |
| 4073 | end | |
| 4074 | end | |
| 4075 | end | |
| 4076 | end) | |
| 4077 | ||
| 4078 | knife.Touched:connect(function(hitz) | |
| 4079 | if hitz.Parent and hitz.Parent:FindFirstChildOfClass("Humanoid") and hitz.Parent:FindFirstChild('Torso') and acting == true then
| |
| 4080 | if mode == "stab" and stabbing == true and hit == false then | |
| 4081 | hit = true | |
| 4082 | tone = math.random(1, 3) | |
| 4083 | audio:Stop() | |
| 4084 | if tone == 1 then audio.SoundId = "rbxassetid://220833967" end | |
| 4085 | if tone == 2 then audio.SoundId = "rbxassetid://220833976" end | |
| 4086 | if tone == 3 then audio.SoundId = "rbxassetid://220834000" end | |
| 4087 | audio.PlaybackSpeed = 1 | |
| 4088 | audio:Play() | |
| 4089 | killz(hitz.Parent,'Left Leg') | |
| 4090 | killz(hitz.Parent,'Left Arm') | |
| 4091 | killz(hitz.Parent,'Right Leg') | |
| 4092 | killz(hitz.Parent,'Right Arm') | |
| 4093 | elseif mode == "finish" and finishing == true then | |
| 4094 | print('PSYCHOPATH MODE REEEEEEEEEEEEEEEE')
| |
| 4095 | tone = math.random(1, 3) | |
| 4096 | audio:Stop() | |
| 4097 | if tone == 1 then audio.SoundId = "rbxassetid://220833967" end | |
| 4098 | if tone == 2 then audio.SoundId = "rbxassetid://220833976" end | |
| 4099 | if tone == 3 then audio.SoundId = "rbxassetid://220834000" end | |
| 4100 | audio.PlaybackSpeed = 1 | |
| 4101 | audio:Play() | |
| 4102 | if hit == false then | |
| 4103 | hitz.Parent:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 4104 | wait() | |
| 4105 | killz(hitz.Parent,'Head',nil,false,true) | |
| 4106 | end | |
| 4107 | hit = true | |
| 4108 | elseif grabbed == nil and grabbing == true and hit == false then | |
| 4109 | if hitz.Parent:FindFirstChildOfClass("Humanoid").Health > 0 and hitz.Parent:FindFirstChild('Torso') and hitz.Parent.Torso:FindFirstChild('Neck') then
| |
| 4110 | grabbed = hitz.Parent | |
| 4111 | local weldz = Instance.new('Weld',point)
| |
| 4112 | weldz.Name = "Holder" | |
| 4113 | weldz.Part0 = point | |
| 4114 | weldz.Part1 = hitz.Parent.Torso | |
| 4115 | weldz.C0 = CFrame.new(0,0,-1.2) | |
| 4116 | end | |
| 4117 | end | |
| 4118 | end | |
| 4119 | end) | |
| 4120 | ||
| 4121 | player.CharacterAdded:connect(function() | |
| 4122 | usable = false | |
| 4123 | for i,v in pairs(playergui:GetChildren()) do | |
| 4124 | if v.Name == "REEEEEEEE" or v.Name == 'PSYCHOPAAAATH' then | |
| 4125 | v:Destroy() | |
| 4126 | end | |
| 4127 | end | |
| 4128 | end) | |
| 4129 | while usable do | |
| 4130 | local coru = coroutine.wrap(function() | |
| 4131 | for i,v in pairs(knifeparts) do | |
| 4132 | local function try() | |
| 4133 | if v[1].Parent ~= v[2] then | |
| 4134 | v[1].Parent = v[2] | |
| 4135 | end | |
| 4136 | end | |
| 4137 | pcall(try) | |
| 4138 | end | |
| 4139 | if grabbed ~= nil then | |
| 4140 | if grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 4141 | for i,v in pairs(grabbed:GetChildren()) do | |
| 4142 | if v:IsA('Tool') then
| |
| 4143 | local model = Instance.new('Model',workspace)
| |
| 4144 | v.Parent = model | |
| 4145 | model:TranslateBy(Vector3.new(3,0,0)) | |
| 4146 | end | |
| 4147 | end | |
| 4148 | grabbed:FindFirstChildOfClass('Humanoid').Name = "Hoomanoid"
| |
| 4149 | grabbed:FindFirstChildOfClass('Humanoid').JumpPower = 0
| |
| 4150 | grabbed:FindFirstChildOfClass('Humanoid').WalkSpeed = 0
| |
| 4151 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = true
| |
| 4152 | grabweld = grabbed.Torso:FindFirstChild("TargetWeld")
| |
| 4153 | if grabweld ~= nil then return end | |
| 4154 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = true
| |
| 4155 | if grabbed.Torso:FindFirstChild('Left Shoulder') then
| |
| 4156 | leftshoulder = grabbed.Torso["Left Shoulder"]:Clone() | |
| 4157 | end | |
| 4158 | if grabbed.Torso:FindFirstChild('Right Shoulder') then
| |
| 4159 | rightshoulder = grabbed.Torso["Right Shoulder"]:Clone() | |
| 4160 | end | |
| 4161 | headweld = grabbed.Torso["Neck"]:Clone() | |
| 4162 | local targetweld = Instance.new('Weld',grabbed.Torso)
| |
| 4163 | targetweld.Part0 = grabbed.Torso | |
| 4164 | targetweld.Part1 = grabbed.Head | |
| 4165 | targetweld.Name = "TargetWeld" | |
| 4166 | targetweld.C0 = CFrame.new(0,1.5,0) * CFrame.Angles(0, 0, 0) | |
| 4167 | if grabbed:FindFirstChild('Left Arm') then
| |
| 4168 | local targetweld2 = Instance.new('Weld',grabbed["Left Arm"])
| |
| 4169 | targetweld2.Part0 = grabbed.Torso | |
| 4170 | targetweld2.Part1 = grabbed["Left Arm"] | |
| 4171 | targetweld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
| 4172 | end | |
| 4173 | ||
| 4174 | for i = 0,1,0.1 do | |
| 4175 | if me:FindFirstChild("Left Arm") == nil or me:FindFirstChild("Torso") == nil or targetweld == nil then return end
| |
| 4176 | targetweld.C0 = targetweld.C0:lerp(CFrame.new(0, 1.5, 0)*CFrame.Angles(0.25, 0, 0), i) | |
| 4177 | if targetweld2 then | |
| 4178 | targetweld2.C0 = targetweld2.C0:lerp(CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(0, 0, -0.55), i) | |
| 4179 | end | |
| 4180 | wait(0.001) | |
| 4181 | end | |
| 4182 | end | |
| 4183 | end | |
| 4184 | end) | |
| 4185 | coru() | |
| 4186 | wait() | |
| 4187 | end | |
| 4188 | ||
| 4189 | end | |
| 4190 | local coru=coroutine.wrap(function() | |
| 4191 | nub() | |
| 4192 | end) | |
| 4193 | coru() | |
| 4194 | ||
| 4195 | player.CharacterAppearanceLoaded:connect(function() | |
| 4196 | local coru =coroutine.wrap(function() | |
| 4197 | nub() | |
| 4198 | end) | |
| 4199 | coru() | |
| 4200 | end) | |
| 4201 | ||
| 4202 | while true do | |
| 4203 | local coru=coroutine.wrap(function() | |
| 4204 | if grabbed then | |
| 4205 | v:FindFirstChildOfClass('Humanoid').Jump = false
| |
| 4206 | v:FindFirstChildOfClass('Humanoid').Sit = false
| |
| 4207 | v:FindFirstChildOfClass('Humanoid').JumpPower = 0
| |
| 4208 | v:FindFirstChildOfClass('Humanoid').PlatformStand = true
| |
| 4209 | v:FindFirstChildOfClass('Humanoid').Name = "No escape."
| |
| 4210 | end | |
| 4211 | for i,v in pairs(rekt) do | |
| 4212 | if v and v:FindFirstChildOfClass('Humanoid') then
| |
| 4213 | for a,c in pairs(v:GetChildren()) do | |
| 4214 | if c:IsA('Tool') then
| |
| 4215 | local model = Instance.new('Model',workspace)
| |
| 4216 | c.Parent = model | |
| 4217 | model:TranslateBy(Vector3.new(3,0,0)) | |
| 4218 | end | |
| 4219 | end | |
| 4220 | v:FindFirstChildOfClass('Humanoid').Jump = false
| |
| 4221 | v:FindFirstChildOfClass('Humanoid').Sit = false
| |
| 4222 | v:FindFirstChildOfClass('Humanoid').JumpPower = 0
| |
| 4223 | v:FindFirstChildOfClass('Humanoid').PlatformStand = true
| |
| 4224 | v:FindFirstChildOfClass('Humanoid').Name = "No escape."
| |
| 4225 | local thing = getplr(v) | |
| 4226 | if thing then | |
| 4227 | thing.CameraMinZoomDistance = 3 | |
| 4228 | end | |
| 4229 | else | |
| 4230 | local thing = getplr(v) | |
| 4231 | if thing then | |
| 4232 | thing.CameraMinZoomDistance = 0.5 | |
| 4233 | end | |
| 4234 | table.remove(rekt,i) | |
| 4235 | end | |
| 4236 | end | |
| 4237 | end) | |
| 4238 | coru() | |
| 4239 | local coru2 = coroutine.wrap(function() | |
| 4240 | if curpart then | |
| 4241 | curpoint = curpart.CFrame.p | |
| 4242 | end | |
| 4243 | if lastgui then | |
| 4244 | lastgui:Destroy() | |
| 4245 | lastgui = nil | |
| 4246 | end | |
| 4247 | if curpoint then | |
| 4248 | lastgui = Instance.new('BillboardGui',player.PlayerGui)
| |
| 4249 | lastgui.AlwaysOnTop = true | |
| 4250 | lastgui.MaxDistance = 0 | |
| 4251 | lastgui.Size = UDim2.new(5,0,5,0) | |
| 4252 | if curpart == nil then | |
| 4253 | lastgui.Adornee = workspace | |
| 4254 | lastgui.StudsOffsetWorldSpace = curpoint | |
| 4255 | else | |
| 4256 | lastgui.Adornee = curpart | |
| 4257 | end | |
| 4258 | local cross = Instance.new('ImageLabel',lastgui)
| |
| 4259 | cross.BackgroundTransparency = 1 | |
| 4260 | cross.Size = UDim2.new(1,0,1,0) | |
| 4261 | cross.Image = 'rbxassetid://316279304' | |
| 4262 | for i,v in pairs(zombies) do | |
| 4263 | if v:FindFirstChildOfClass('Humanoid') then
| |
| 4264 | v:FindFirstChildOfClass('Humanoid').WalkToPoint = curpoint
| |
| 4265 | end | |
| 4266 | end | |
| 4267 | else | |
| 4268 | for i,v in pairs(zombies) do | |
| 4269 | if v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Head') then
| |
| 4270 | v:FindFirstChildOfClass('Humanoid').WalkToPoint = v.Head.Position
| |
| 4271 | end | |
| 4272 | end | |
| 4273 | end | |
| 4274 | end) | |
| 4275 | coru2() | |
| 4276 | wait() | |
| 4277 | end |