Advertisement
tomonaoboys

Grotesque(public / discontinued)

May 3rd, 2018
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.64 KB | None | 0 0
  1. --Grotesque
  2. --by tomonaoboys
  3. --I'm not made for insane attacking (example : huge range , find even renamed) because im gonna leak or already got
  4.  
  5. --[[
  6.     *alert*
  7.     this includes Grotesque things such as head removing and bleedings , and cannibalism(insanely bad at humans).
  8.     who likes this script?          SERIOUSLY.
  9.    
  10.     and if you edit this bad script
  11.     be careful to those spaghetti , or else they'll suck your brain.
  12. --]]
  13. owner=owner or game:service'Players'.LocalPlayer
  14. local pl,ground,walk,fall,chr,run,debri,act,mouse,walkspeed,fall,jumppower=owner,false,false,false,owner.Character,game:service'RunService',function(i,t)game:service'Debris':AddItem(i,t or 1)end,false,owner:GetMouse(),6,false,66.6
  15. local Through,Hold={chr},{}mouse.TargetFilter=chr
  16. local w=function(n)if tonumber(n)then for i=1,tonumber(n)do run.RenderStepped:wait()end else run.RenderStepped:wait()end return true end
  17. local sw,bloodcol=w,Color3.new(2/3)local function ieraseurmotor(chr)
  18.     for i,p in pairs(chr:children())do for i2,p2 in pairs(p:children())do if p2:IsA("Motor6D")and(tostring(p2)~="RootJoint"and tostring(p2)~="Neck")then
  19.     p2:Destroy()end end end if chr:FindFirstChild("Animate")then chr.Animate:Destroy()end
  20.     if chr:FindFirstChildOfClass("Humanoid")then if chr:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator")then chr:FindFirstChildOfClass("Humanoid").Animator:Destroy()end end
  21. end
  22. function FindHumanoid(part)if part~=nil then local hum=nil --Humanoid Finding : Recursive the returned?????
  23. local function Get(idk)local a=nil if idk:FindFirstChild"Humanoid"then a=idk:FindFirstChild"Humanoid"elseif idk and idk.Parent and idk~=workspace and idk.Parent~=workspace and idk.Parent~=game and idk~=game then
  24. a=Get(idk.Parent)end return a end return Get(part)end end FH=FindHumanoid
  25. local function Region3Find(Size,Pos,Script,AutoSearch)--if AutoSearch==true then it automatically insert Humanoid after Part.
  26.     Pos=typeof(Pos)=="CFrame"and Pos.p or Pos local reg=Region3.new(Pos-Vector3.new(Size/2,Size/2,Size/2),Pos+Vector3.new(Size/2,Size/2,Size/2))
  27.     for i,p in pairs(workspace:FindPartsInRegion3WithIgnoreList(reg,Through,1000))do
  28.     if AutoSearch then local h=FH(p)if h then spawn(function()if h.Parent then Script(p,h)end end)end else spawn(function()Script(p)end)end
  29.     end
  30. end
  31. function DisJoint(part)if part then for i,p in pairs(part:GetDescendants())do if p:IsA'Motor'or p:IsA'Motor6D'or p:IsA'Weld'then p.Part0=nil p.Part1=nil p:Destroy()end end end end
  32. local root,torso,hum=chr.HumanoidRootPart,chr.Torso,chr:FindFirstChildOfClass'Humanoid'
  33. local head,ra,la,rl,ll=chr.Head,chr["Right Arm"],chr["Left Arm"],chr["Right Leg"],chr["Left Leg"]
  34. local rc,he,rh,lh,rs,ls=root.RootJoint,torso.Neck local c,ca,v3=CFrame.new,CFrame.Angles,Vector3.new
  35. local function ToMesh(Part)local Mesh=Instance.new("SpecialMesh",Part)
  36.     if Part:IsA"WedgePart"then Mesh.MeshType="Wedge"elseif Part.Shape==Enum.PartType.Block then Mesh.MeshType="Brick"elseif Part.Shape==Enum.PartType.Ball then Mesh.MeshType="Sphere"elseif Part.Shape==Enum.PartType.Cylinder then Mesh.MeshType="Cylinder"end
  37.     Mesh.Scale=Part.Size*20 Part.Size=v3()return Mesh
  38. end
  39. if 1 then
  40.     function CreateMotor() -- remake motor ,or useful at reseting them(but won't work well because not made for)
  41.         ieraseurmotor(chr)rh=Instance.new("Motor",torso)lh=Instance.new("Motor",torso)rs=Instance.new("Motor",torso)ls=Instance.new("Motor",torso)
  42.         rs.Part0,rs.Part1=torso,ra ls.Part0,ls.Part1=torso,la rh.Part0,rh.Part1=torso,rl lh.Part0,lh.Part1=torso,ll
  43.     end
  44.     CreateMotor()
  45. end
  46. local cl0,cl1=function(t,c,s)t.C0=t.C0:lerp(c,s>1 and 1 or s)end,function(t,c,s)t.C1=t.C1:lerp(c,s>1 and 1 or s)end
  47. CFrameRay=function(Part,Length,WaterOpt)--or else , JUST CFrame. (return : hitting part / position )
  48. local cf=typeof(Part)=="Instance"and Part.CFrame or Part return workspace:FindPartOnRayWithIgnoreList(Ray.new(cf.p,cf.lookVector*Length),Through,true,not WaterOpt)end
  49. spawn(function()
  50.     cl1(rs,c(),1)cl1(ls,c(),1)cl1(rh,c(-.5,2,0),1)cl1(lh,c(.5,2,0),1)
  51.     local oldC=root.CFrame local co=0
  52.     while w()do
  53.         hum.Health,hum.MaxHealth,hum.WalkSpeed,hum.JumpPower=0/0,1/0,walkspeed,walkspeed~=0 and jumppower or 0
  54.         if chr:FindFirstChildOfClass'ForceField'then chr:FindFirstChildOfClass'ForceField'.Visible=nil else Instance.new("ForceField",chr).Name=""end
  55.         local rC=root.CFrame co=co+.0333
  56.         if math.abs(rC.p.x-oldC.p.x)>.01 or math.abs(rC.p.z-oldC.p.z)>.01 then walk=true else walk=false end
  57.         if CFrameRay(c(root.CFrame.p,root.CFrame.p-v3(0,1,0)),3.5)==nil then ground=false else ground=true end
  58.         if ground then
  59.             fall=false
  60.             if walk then
  61.                 cl1(rc,c()*ca(math.sin(co)/15+math.rad(-90)+.2,0,math.rad(180)),.3)
  62.                 cl1(rh,c(-.5,2+math.cos(co)/9,math.sin(co)/2)*ca(math.sin(co)/2,0,math.cos(co*2)/-70),.3)
  63.                 cl1(lh,c(.5,2+math.cos(co)/9,math.sin(-co)/2)*ca(math.sin(-co)/2,0,math.cos(co*2)/70),.3)
  64.                 cl1(rs,c(-1.5,0,.2)*ca(-.24,0,math.cos(co/2)/10),.3)cl1(ls,c(1.5,0,.2)*ca(-.24,0,math.sin(co/2)/10),.3)
  65.             else
  66.                 cl1(rc,c()*ca(math.sin(co)/55+math.rad(-90)+.2,0,math.rad(180)),.3)
  67.                 cl1(rh,c(-.5,2,.2)*ca(-.2+math.sin(co/1.2)/30,0,0),.3)cl1(lh,c(.5,2,.1)*ca(.12+math.sin(1+co/1.2)/30,0,0),.3)
  68.                 cl1(rs,c(-1.5,0,.2)*ca(-.24,0,math.cos(co/2)/10),.3)cl1(ls,c(1.5,0,.2)*ca(-.24,0,math.sin(co/2)/10),.3)
  69.             end
  70.         else
  71.             cl1(rc,c()*ca(math.rad(-90),0,math.rad(180)),.3)
  72.             cl1(rh,c(-.5,1.6,.7)*ca(math.rad(20),0,0),.3)cl1(lh,c(.5,2,0),.3)
  73.             if rC.p.y-oldC.p.y<0 then
  74.                 fall=true
  75.                 cl1(rs,c(-1.5,.5,0)*ca(0,0,-.4),.3)cl1(ls,c(1.5,.5,0)*ca(0,0,.4),.3)
  76.             else
  77.                 fall=false
  78.                 cl1(rs,c(-1.5,.3,0)*ca(0,0,-.2),.3)cl1(ls,c(1.5,.3,0)*ca(0,0,.2),.3)
  79.             end
  80.         end
  81.         oldC=rC
  82.     end
  83. end)
  84. mouse.KeyDown:connect(function(k)Hold[k]=true
  85.     if not act then
  86.         if k=="z"then act=true
  87.             for i=0,1,.05 do cl0(rs,c(1.8,-.9,0)*ca(0,0,math.rad(90)),.2)w()end
  88.             local hit,hu=nil,nil
  89.             local we,he=nil,nil
  90.             for i=0,1,.05 do cl0(rs,c(.4,-.9,-1.3)*ca(0,math.rad(120),math.rad(90)),.2)
  91.             if not hit then
  92.                 Region3Find(1,ra.CFrame,function(p,h)hit,hu=p,h DisJoint(hu.Parent)end,true)
  93.             end
  94.             if hit and hu.Parent and hu.Parent:FindFirstChild"Head"then
  95.             we=Instance.new("Weld",ra)he=hu.Parent.Head:Clone()hu.Parent.Head:Destroy()
  96.             he.Parent=workspace
  97.             we.Part0,we.Part1,we.C0=ra,he,c(0,-1.3,0)
  98.             end
  99.             sw()
  100.             end if we then sw(120)we:Destroy()he:Destroy()local h,po=CFrameRay(c(he.CFrame.p,he.CFrame.p-v3(0,1)),5)
  101.             if h then local p=Instance.new("Part",workspace)p.Material="Glass"p.CanCollide=nil p.Anchored=1 p.Color=bloodcol
  102.             p.Size=Vector3.new(5)p.Shape="Ball"local m=ToMesh(p)p.CFrame=c(po)m.Scale=v3(m.Scale.x,1,m.Scale.z)
  103.             end
  104.             end
  105.             for i=0,1,.04 do cl0(rs,c(),.2)w()end
  106.             act=false
  107.         end
  108.     end
  109. end)
  110. mouse.KeyUp:connect(function(k)Hold[k]=nil end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement