Advertisement
Prephy

Mr.Brick

Feb 28th, 2021 (edited)
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.02 KB | None | 0 0
  1. warn[[
  2. Mr.Brick
  3. Made by projor22
  4. ]]
  5.  
  6. local player = owner
  7. local old = nil
  8. local character = player.Character
  9. local mod = Instance.new("Model",workspace) mod.Name=">Mr.Brick<"
  10. local hed = Instance.new("FlagStand",mod) hed.Size = Vector3.new(2,1,1) hed.Name = "Head" hed.Transparency=0 hed.Anchored=false hed.CanCollide=false
  11. local mesh = Instance.new("SpecialMesh",hed) mesh.MeshId="rbxassetid://1104623876" mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  12. local tor = Instance.new("FlagStand",mod) tor.Name = "Torso" tor.Size = Vector3.new(2,2,1) tor.Transparency=0 tor.Anchored=false tor.CanCollide=true
  13. local right_arm = Instance.new("FlagStand",mod) right_arm.Size=Vector3.new(1,2,1) right_arm.Transparency=0 right_arm.Name = "Right Arm" right_arm.Anchored=false
  14. local left_arm = Instance.new("FlagStand",mod) left_arm.Size=Vector3.new(1,2,1) left_arm.Transparency=0 left_arm.Name = "Left Arm" left_arm.Anchored=false
  15. local right_leg = Instance.new("FlagStand",mod) right_leg.Size=Vector3.new(1,2,1) right_leg.Transparency=0 right_leg.Name = "Right Leg" right_leg.Anchored=false
  16. local left_leg = Instance.new("FlagStand",mod) left_leg.Size=Vector3.new(1,2,1) left_leg.Transparency=0 left_leg.Name = "Left Leg" left_leg.Anchored=false
  17. local faker =  Instance.new("FlagStand",mod) faker.Name = " " faker.Size =  Vector3.new(2.001,2.001,1.001)
  18. local weld = Instance.new("Weld",faker) weld.Part0=faker weld.Part1=tor
  19.  
  20. local old = nil
  21. old = tor
  22.  
  23.  
  24. local Torso = tor
  25. old=tor
  26. function makeJoint(limbName, jointName, c0, c1)
  27.     local limb = limbName
  28.     limb:BreakJoints()
  29.     local joint = Instance.new"Motor"
  30.     joint.Name = jointName
  31.     joint.Part0 = Torso
  32.     joint.Part1 = limb
  33.     joint.C0 = c0
  34.     joint.C1 = c1
  35.     joint.MaxVelocity = 0.1
  36.     joint.archivable = false
  37.     joint.Parent = Torso
  38.     return joint
  39. end
  40. local Neck = makeJoint(hed,"Neck", CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  41. local RightShoulder = makeJoint(right_arm, "Right Shoulder", CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
  42. local LeftShoulder = makeJoint(left_arm, "Left Shoulder", CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
  43. local RightHip = makeJoint(right_leg, "Right Hip", CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
  44. local LeftHip = makeJoint(left_leg, "Left Hip", CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
  45. if character then
  46.     local torsotest = character:FindFirstChild("Torso")
  47.     if torsotest then
  48.         tor.CFrame = torsotest.CFrame
  49.         player.Character = mod 
  50.  
  51.     else
  52.         local headtest = character:FindFirstChild("Head")
  53.         if headtest then
  54.             hed.CFrame=headtest.CFrame
  55.             player.Character = mod 
  56.  
  57.         else
  58.             local fake = workspace:FindFirstChild("fakerhead")
  59.             if fake then
  60.                 hed.CFrame=fake.CFrame
  61.                 player.Character = mod 
  62.  
  63.             else
  64.                 print("respawning")
  65.                 player:LoadCharacter()
  66.                 wait(.4)
  67.                 player.Character = mod 
  68.  
  69.             end
  70.         end
  71.     end
  72. else
  73.     print("respawning")
  74.     player:LoadCharacter()
  75.     wait(.4)
  76.     player.Character = mod 
  77.  
  78. end
  79.  
  80. local f = Instance.new("ForceField",mod) f.Visible=false f.Name=" "
  81. local remo = Instance.new("RemoteEvent",mod) remo.Name="guess"
  82. local ghostify = false
  83. hm=false
  84. remo.OnServerEvent:Connect(function(pl, attack)
  85.     if hm == false then
  86.         if ghostify == false then
  87.             ghostify=true
  88.             local motor =   player.Character.Torso:FindFirstChild("Right Shoulder")
  89.             local motor2 = player.Character.Torso:FindFirstChild("Left Shoulder")
  90.             if motor then
  91.                 if motor2 then
  92.                     motor2.DesiredAngle=-1.56
  93.                 end
  94.                 motor.DesiredAngle=1.56
  95.                 local head = hed
  96.                 if head then
  97.                     local look = head:FindFirstChild("Decal")
  98.                     if look then
  99.  
  100.                     else
  101.  
  102.                     end
  103.                 end
  104.             end
  105.         else
  106.             ghostify=false
  107.             local motor = player.Character.Torso:FindFirstChild("Left Shoulder")
  108.             local motor2 =  player.Character.Torso:FindFirstChild("Right Shoulder")
  109.             if motor2 then
  110.                 if motor then
  111.                     motor.DesiredAngle=0
  112.                 end
  113.                 motor2.DesiredAngle=0
  114.  
  115.             end
  116.         end
  117.     end
  118. end)
  119.  
  120. function Kill(die)
  121.     die:BreakJoints()
  122.     for i,g in pairs(die:GetDescendants()) do
  123.         if g:IsA("BasePart") then
  124.             local lol = nil
  125.             lol = g
  126.             lol.Color = Color3.fromRGB()
  127.             g:Destroy()
  128.             local check = tor:FindFirstChild("mp3")
  129.             if check then
  130.                 check:Play()
  131.             else
  132.                 local sound = Instance.new("Sound",tor)
  133.                 sound.SoundId = "rbxassetid://224299497"
  134.                 sound.Volume = 2.3
  135.                 --  sound.PlayOnRemove=true
  136.                 sound.Name="mp3"
  137.             end
  138.             local bp = Instance.new("BodyVelocity",lol)
  139.             bp.MaxForce = Vector3.new(0,math.huge,0)   
  140.             lol.Transparency=.6
  141.             local died = Instance.new("FlagStand",workspace)            died.CanCollide=false
  142.             local mesher = died:FindFirstChildOfClass("SpecialMesh")
  143.             if mesher then
  144.                 mesher.Parent=died
  145.             end
  146.        
  147.            
  148.             died.CFrame=lol.CFrame 
  149.             --  local particle1 = Instance.new("FlagStand",died) particle1.Size=Vector3.new(math.random(),math.random(),math.random()) particle1.Color=Color3.new() particle1.Transparency=.6 particle1.CFrame=died.CFrame
  150.             died.Size=lol.Size
  151.             died.Transparency=lol.Transparency
  152.             died.BrickColor=lol.BrickColor
  153.             died.Name='life'
  154.        
  155.            
  156.         end
  157.     end
  158. end
  159.  
  160.  
  161.  
  162. tor.Touched:Connect(function(par)
  163.     if ghostify==true then
  164.         if par.Parent ~= workspace and par.Parent ~= workspace.Terrain then
  165.             for i,g in pairs(par.Parent:GetDescendants()) do
  166.                 if g:IsA("BasePart") then
  167.                     if g.Name=="BasePlate" then
  168.  
  169.                     else
  170.                         Kill(g)
  171.  
  172.  
  173.                         par:Destroy()
  174.                         local ch = player.Character.Torso:FindFirstChild("MP3")
  175.                         if ch then
  176.                             wait()
  177.                             ch:Play()
  178.                         else
  179.                             local sound = Instance.new("Sound",tor)
  180.                             sound.SoundId = "rbxassetid://177060375"
  181.                             sound.Volume = 2
  182.                             --sound.PlayOnRemove=true
  183.                             sound.Name="MP3"
  184.                         end
  185.                     end
  186.                 end
  187.             end
  188.         end
  189.     end
  190. end)
  191.  
  192. local rem = Instance.new("RemoteEvent",player.Character) rem.Name="yes"
  193. local tel = Instance.new("RemoteEvent",player.Character) tel.Name="tp"
  194. local killer = Instance.new("RemoteEvent",player.Character) killer.Name="lIIl"
  195.  
  196.  
  197. local wave = true
  198.  
  199. rem.OnServerEvent:connect(function(plr, wav)
  200.     if wav then
  201.         if hm == false then
  202.             if ghostify==false then
  203.                 if wave == true then
  204.                     wave=false
  205.                     local motor =   player.Character.Torso:FindFirstChild("Right Shoulder")
  206.                     if motor then
  207.                         motor.DesiredAngle=3.144
  208.                     end
  209.                 else
  210.                     wave=true
  211.                     local motor2 =  player.Character.Torso:FindFirstChild("Right Shoulder")
  212.                     if motor2 then
  213.                         motor2.DesiredAngle=0
  214.                     end
  215.                 end
  216.  
  217.             end
  218.         end
  219.     end
  220.  
  221. end)
  222.  
  223. tel.OnServerEvent:connect(function(plr, position)
  224.     tor.Position=position + Vector3.new(0,3,0)
  225. end)
  226.  
  227. killer.OnServerEvent:connect(function(plr, target)
  228.     local mt=target
  229.     if mt then
  230.         if mt.Parent.ClassName == "Model" then
  231.             Kill(mt.Parent)
  232.  
  233.  
  234.         elseif mt.Parent.Parent.ClassName == "Model" then
  235.             Kill(mt.Parent.Parent)
  236.  
  237.  
  238.  
  239.  
  240.         end
  241.  
  242.     end
  243. end)
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250. local leftarm = Instance.new("CharacterMesh",mod)
  251. leftarm.BodyPart = Enum.BodyPart.LeftArm
  252. leftarm.MeshId= "1112256772"
  253. local righttarm = Instance.new("CharacterMesh",mod)
  254. righttarm.BodyPart = Enum.BodyPart.RightArm
  255. righttarm.MeshId = "1112244824"
  256. local leftleg = Instance.new("CharacterMesh",mod)
  257. leftleg.BodyPart = Enum.BodyPart.LeftLeg
  258. leftleg.MeshId = "1112275294"
  259. local rightleg = Instance.new("CharacterMesh",mod)
  260. rightleg.BodyPart = Enum.BodyPart.RightLeg
  261. rightleg.MeshId = "1112267576"
  262. local torso = Instance.new("CharacterMesh",mod)
  263. torso.BodyPart = Enum.BodyPart.Torso
  264. torso.MeshId = "1112228624"
  265.  
  266.  
  267.  
  268.  
  269. NLS([[
  270. local player = game:GetService("Players").LocalPlayer
  271. local hum = Instance.new("Humanoid",player.Character) hum.MaxHealth = -300 hum.Health=-300 hum.Name = "" hum.BreakJointsOnDeath=false hum.RequiresNeck=false hum.WalkSpeed=13  
  272. workspace.CurrentCamera:Destroy()
  273. wait()
  274. workspace.CurrentCamera.CameraSubject = hum
  275. workspace.CurrentCamera.CameraType = "Custom"
  276. local mouse = player:GetMouse()
  277. local remote = player.Character:WaitForChild("guess")
  278. local r = player.Character:WaitForChild("yes")
  279. local teleport = player.Character:WaitForChild("tp")
  280. local kills = player.Character:WaitForChild("lIIl")
  281.  
  282. mouse.KeyDown:connect(function(Key)
  283.     Key = Key:lower()
  284.     if  Key == 'c' then
  285.         remote:FireServer("attack")
  286.  
  287.     end
  288.     end)
  289.    
  290.     mouse.KeyDown:connect(function(Key)
  291.     Key = Key:lower()
  292.     if  Key == 'x' then
  293.         r:FireServer("wav")
  294.  
  295.     end
  296. end)
  297.  
  298.     mouse.KeyDown:connect(function(Key)
  299.     Key = Key:lower()
  300.     if  Key == 'z' then
  301.         teleport:FireServer(mouse.Hit.p)
  302.  
  303.     end
  304. end)
  305.  
  306.  
  307.     mouse.KeyDown:connect(function(Key)
  308.     Key = Key:lower()
  309.     if  Key == 'e' then
  310.         kills:FireServer(mouse.Target)
  311.  
  312.     end
  313. end)
  314.    
  315.  
  316.  
  317. ]],player.Character)
  318.  
  319.  
  320.  
  321. local RunService = game:GetService("RunService")
  322. local RATE_PER_SECOND = 2
  323. RunService.Heartbeat:Connect(function(step)
  324.     local increment = RATE_PER_SECOND * step
  325.     if tor then
  326.        
  327.     else
  328.        
  329.     end
  330.    
  331.    
  332. end)
  333.  
  334.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement