Advertisement
TheUnknownDiscord

grab lo

Nov 14th, 2021 (edited)
877
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. radio = Instance.new("Part",script)
  2. radio.Name = "Radio"
  3. rmesh = Instance.new("SpecialMesh", radio)
  4. rmesh.MeshId = "rbxassetid://151760030"
  5. rmesh.Scale = Vector3.new(1,1,1)
  6. rmesh.TextureId = "rbxassetid://151760072"
  7. radio.Size = Vector3.new(3.2,1.6,1.2)
  8. hammer = Instance.new("Part",script)
  9. hmesh = Instance.new("SpecialMesh", hammer)
  10. hmesh.MeshId = "rbxassetid://16198309"
  11. hmesh.Scale = Vector3.new(1.2,1.2,1.2)
  12. hmesh.TextureId = "rbxassetid://16198294"
  13. hammer.Size = Vector3.new(2,1.5,4)
  14. local shatter = Instance.new("Sound",hammer)
  15. shatter.SoundId = "http://www.roblox.com/asset/?id=3103862943"
  16. shatter.Volume = 1.5
  17. hammer.Touched:Connect(function(hit)
  18. if hit.Material == Enum.Material.Glass then
  19. hit:Destroy()
  20. shatter:Play()
  21. end
  22. end)
  23. local music = Instance.new("Sound",radio)
  24. music.Volume = 1.5
  25. music.Looped = true
  26.      local screengui = Instance.new("ScreenGui", owner:findFirstChildOfClass("PlayerGui"))
  27.         screengui.ResetOnSpawn = true
  28. screengui.Name = "Textlol2"
  29.         local tl = Instance.new("TextBox", screengui)
  30.         tl.Size = UDim2.new(0.105,0,0.075,0)
  31.     tl.AnchorPoint = Vector2.new(1, 0.90)
  32.     tl.Position = UDim2.new(1, 0, 0.90, 0)
  33.         tl.BackgroundTransparency = 1
  34.         tl.TextColor3 = Color3.new(1, 1, 1)
  35. tl.TextTransparency = 1
  36. tl.Name = "Textlol"
  37.        local tl2 = Instance.new("TextBox", screengui)
  38. tl2.Text = "1"
  39. tl2.PlaceholderText = "Speed"
  40.         tl2.Size = UDim2.new(0.105,0,0.075,0)
  41.     tl2.AnchorPoint = Vector2.new(1, 0.80)
  42.     tl2.Position = UDim2.new(1, 0, 0.80, 0)
  43.         tl2.BackgroundTransparency = 1
  44.         tl2.TextColor3 = Color3.new(1, 1, 1)
  45. tl2.TextTransparency = 1
  46. tl2.Name = "Textlol3"
  47.        local tl3 = Instance.new("TextBox", screengui)
  48. tl3.Text = "1.5"
  49. tl3.PlaceholderText = "volume"
  50.         tl3.Size = UDim2.new(0.105,0,0.075,0)
  51.     tl3.AnchorPoint = Vector2.new(1, 0.70)
  52.     tl3.Position = UDim2.new(1, 0, 0.70, 0)
  53.         tl3.BackgroundTransparency = 1
  54.         tl3.TextColor3 = Color3.new(1, 1, 1)
  55. tl3.TextTransparency = 1
  56. tl3.Name = "Textlol4"
  57.         local musicplay = Instance.new("TextButton", screengui)
  58.         musicplay.Size = UDim2.new(0.105,0,0.075,0)
  59.     musicplay.AnchorPoint = Vector2.new(1, 1)
  60.     musicplay.Position = UDim2.new(1, 0, 1, 0)
  61.         musicplay.Text = "Play"
  62.         musicplay.BackgroundTransparency = 1
  63.         musicplay.TextColor3 = Color3.new(1, 1, 1)
  64. musicplay.TextTransparency = 1
  65. musicplay.Active = true
  66. remote2 = Instance.new("RemoteEvent",owner.Character)
  67. remote2.Name = "The2"
  68. remote2.OnServerEvent:Connect(function(plr, text)
  69. tl.Text = text
  70. end)
  71. remote3 = Instance.new("RemoteEvent",owner.Character)
  72. remote3.Name = "The3"
  73. remote3.OnServerEvent:Connect(function(plr, text)
  74. tl2.Text = text
  75. end)
  76. remote4 = Instance.new("RemoteEvent",owner.Character)
  77. remote4.Name = "The4"
  78. remote4.OnServerEvent:Connect(function(plr, text)
  79. tl3.Text = text
  80. end)
  81. function playmusic()
  82. music:Stop()
  83. music.PlaybackSpeed = tl2.Text
  84. music.Volume = tl3.Text
  85.                 music.SoundId = "http://www.roblox.com/asset/?id="..tl.Text
  86. wait()
  87. music:Play()
  88. end
  89. musicplay.MouseButton1Down:Connect(playmusic)
  90. function musictime()
  91. coroutine.wrap(function()
  92. tl.TextTransparency = 0
  93. musicplay.TextTransparency = 0
  94.         musicplay.Text = "Play"
  95. musicplay.BackgroundTransparency = 0
  96.         tl.BackgroundTransparency = 0
  97.         tl2.BackgroundTransparency = 0
  98. tl2.Text = "1"
  99. tl2.PlaceholderText = "Speed"
  100. tl2.TextTransparency = 0
  101. tl3.Text = "1"
  102. tl3.BackgroundTransparency = 0
  103. tl3.TextTransparency = 0
  104. end)()
  105. end
  106. function musictime2()
  107. coroutine.wrap(function()
  108. tl.TextTransparency = 1
  109. musicplay.TextTransparency = 1
  110.         musicplay.Text = "Play"
  111. musicplay.BackgroundTransparency = 1
  112.         tl.BackgroundTransparency = 1
  113.         tl2.BackgroundTransparency = 1
  114. tl2.TextTransparency = 1
  115. tl3.BackgroundTransparency = 1
  116. tl3.TextTransparency = 1
  117. end)()
  118. end
  119. local shoulder
  120. local shoulder2
  121. local leg
  122. local leg2
  123. for i,v in pairs(owner.Character:GetDescendants()) do
  124. if v:IsA("Motor6D") then
  125. if v.Name == "Left Shoulder" then
  126. shoulder = v
  127. elseif v.Name == "Right Shoulder" then
  128. shoulder2 = v
  129. elseif v.Name == "Right Hip" then
  130. leg2 = v
  131. elseif v.Name == "Left Hip" then
  132. leg = v
  133. end
  134. end
  135. end
  136. wait()
  137.             local limbcollider = Instance.new("Part", owner.Character:findFirstChild("Right Arm"))
  138.                 limbcollider.Size = Vector3.new(1.4,1,1)
  139.                 limbcollider.Transparency = 1
  140.                 limbcollider.Name = "LimbCollider"
  141.                 local limbcolliderweld = Instance.new("Weld", limbcollider)
  142.                 limbcolliderweld.Part0 = owner.Character:findFirstChild("Right Arm")
  143.                 limbcolliderweld.Part1 = limbcollider
  144.                 limbcollider.Shape = "Cylinder"
  145.                 limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  146.             local limbcollider2 = Instance.new("Part", owner.Character:findFirstChild("Left Arm"))
  147.                 limbcollider2.Size = Vector3.new(1.4,1,1)
  148.                 limbcollider2.Transparency = 1
  149.                 limbcollider2.Name = "LimbCollider"
  150.                 limbcollider2.Shape = "Cylinder"
  151.                 local limbcolliderweld2 = Instance.new("Weld", limbcollider2)
  152.                 limbcolliderweld2.Part0 = owner.Character:findFirstChild("Left Arm")
  153.                 limbcolliderweld2.Part1 = limbcollider2
  154.                 limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  155.             local Socket = Instance.new("BallSocketConstraint")
  156.             local a1 = Instance.new("Attachment")
  157.             local a2 = Instance.new("Attachment")
  158.             a1.Parent = owner.Character["Left Arm"]
  159.             a2.Parent = owner.Character.Torso
  160.             Socket.Parent = owner.Character["Left Arm"]
  161.             Socket.Attachment0 = a1
  162.             Socket.Attachment1 = a2
  163.             a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  164.             a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-1.5,0.5,0)
  165.             local Socket2 = Instance.new("BallSocketConstraint")
  166.             local a3 = Instance.new("Attachment")
  167.             local a4 = Instance.new("Attachment")
  168.             a3.Parent = owner.Character["Right Arm"]
  169.             a4.Parent = owner.Character.Torso
  170.             Socket2.Parent = owner.Character["Right Arm"]
  171.             Socket2.Attachment0 = a3
  172.             Socket2.Attachment1 = a4
  173.             a3.WorldCFrame = a3.Parent.CFrame * CFrame.new(0,0.5,0)
  174.             a4.WorldCFrame = a4.Parent.CFrame * CFrame.new(1.5,0.5,0)
  175.             local limbcollider3 = Instance.new("Part", owner.Character:findFirstChild("Right Leg"))
  176.                 limbcollider3.Size = Vector3.new(1.4,1,1)
  177.                 limbcollider3.Transparency = 1
  178.                 limbcollider3.Name = "LimbCollider"
  179.                 local limbcolliderweld3 = Instance.new("Weld", limbcollider3)
  180.                 limbcolliderweld3.Part0 = owner.Character:findFirstChild("Right Leg")
  181.                 limbcolliderweld3.Part1 = limbcollider3
  182.                 limbcollider3.Shape = "Cylinder"
  183.                 limbcolliderweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  184.             local limbcollider4 = Instance.new("Part", owner.Character:findFirstChild("Left Leg"))
  185.                 limbcollider4.Size = Vector3.new(1.4,1,1)
  186.                 limbcollider4.Transparency = 1
  187.                 limbcollider4.Name = "LimbCollider"
  188.                 limbcollider4.Shape = "Cylinder"
  189.                 local limbcolliderweld4 = Instance.new("Weld", limbcollider4)
  190.                 limbcolliderweld4.Part0 = owner.Character:findFirstChild("Left Leg")
  191.                 limbcolliderweld4.Part1 = limbcollider4
  192.                 limbcolliderweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  193.             local Socket3 = Instance.new("BallSocketConstraint")
  194.             local a5 = Instance.new("Attachment")
  195.             local a6 = Instance.new("Attachment")
  196.             a5.Parent = owner.Character["Left Leg"]
  197.             a6.Parent = owner.Character.Torso
  198.             Socket3.Parent = owner.Character["Left Leg"]
  199.             Socket3.Attachment0 = a5
  200.             Socket3.Attachment1 = a6
  201.             a5.WorldCFrame = a5.Parent.CFrame * CFrame.new(0,0.5,0)
  202.             a6.WorldCFrame = a6.Parent.CFrame * CFrame.new(-0.5,-1.5,0)
  203.             local Socket4 = Instance.new("BallSocketConstraint")
  204.             local a7 = Instance.new("Attachment")
  205.             local a8 = Instance.new("Attachment")
  206.             a7.Parent = owner.Character["Right Leg"]
  207.             a8.Parent = owner.Character.Torso
  208.             Socket4.Parent = owner.Character["Right Leg"]
  209.             Socket4.Attachment0 = a7
  210.             Socket4.Attachment1 = a8
  211.             a7.WorldCFrame = a7.Parent.CFrame * CFrame.new(0,0.5,0)
  212.             a8.WorldCFrame = a8.Parent.CFrame * CFrame.new(0.5,-1.5,0)
  213. remote = Instance.new("RemoteEvent",owner.Character)
  214. remote.Name = "The"
  215. count = 0
  216. local what
  217. local weld
  218. local oldowner
  219. count2 = 0
  220. local what3
  221. local weld3
  222. local oldowner3
  223. local what4
  224. local weld4
  225. local oldowner4
  226. count4 = 0
  227. local what2
  228. local weld2
  229. local oldowner2
  230. count3 = 0
  231. grabreach = 7.5
  232. remote.OnServerEvent:Connect(function(plr,action,who,hit)
  233. pcall(function()
  234. if action == "Grab" then
  235. if (owner.Character["Left Arm"].CFrame.Position - hit.Position).magnitude <= grabreach then
  236. count = count+1
  237. if count == 1 then
  238. local density = who:GetMass()
  239. local friction = .5
  240. local elasticity = 0
  241. local frictionWeight = 10000
  242. local elasticityWeight = 0
  243. local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
  244. who.CustomPhysicalProperties = physProperties
  245. shoulder.Enabled = false
  246. if who.Name == "Radio" then
  247. musictime()
  248. owner.Character["Left Arm"].CFrame = who.CFrame * CFrame.new(0,1.5,0)
  249. elseif who.Name ~= "Radio" then
  250. owner.Character["Left Arm"].CFrame = hit * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,0.5,0)
  251. end
  252. wait()
  253. weld = Instance.new("WeldConstraint",limbcollider2)
  254. weld.Part0 = who
  255. weld.Part1 = limbcollider2
  256. who.Massless = true
  257. oldowner = who:GetNetworkOwner()
  258. task.wait()
  259. who:SetNetworkOwner(owner)
  260. hum = who.Parent:FindFirstChild("Humanoid") or who.Parent.Parent:FindFirstChild("Humanoid")
  261. if hum then
  262. hum.PlatformStand = true
  263. end
  264. what = who
  265. elseif count == 2 then
  266. shoulder.Enabled = true
  267. weld:Destroy()
  268. count = 0
  269. what.Massless = false
  270. if what.Name == "Radio" then
  271. musictime2()
  272. end
  273. task.wait()
  274. what:SetNetworkOwner(oldowner)
  275. if hum then
  276. hum.PlatformStand = false
  277. end
  278. wait()
  279. end
  280. end
  281. elseif action == "Grab2" then
  282. if (owner.Character["Right Arm"].CFrame.Position - hit.Position).magnitude <= grabreach then
  283. count2 = count2+1
  284. if count2 == 1 then
  285. local density = who:GetMass()
  286. local friction = .5
  287. local elasticity = 0
  288. local frictionWeight = 10000
  289. local elasticityWeight = 0
  290. local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
  291. who.CustomPhysicalProperties = physProperties
  292. shoulder2.Enabled = false
  293. if who.Name == "Radio" then
  294. musictime()
  295. owner.Character["Right Arm"].CFrame = who.CFrame * CFrame.new(0,1.6,0)
  296. elseif who.Name ~= "Radio" then
  297. owner.Character["Right Arm"].CFrame = hit * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,0.5,0)
  298. end
  299. wait()
  300. weld2 = Instance.new("WeldConstraint",limbcollider)
  301. weld2.Part0 = who
  302. weld2.Part1 = limbcollider
  303. who.Massless = true
  304. oldowner2 = who:GetNetworkOwner()
  305. task.wait()
  306. who:SetNetworkOwner(owner)
  307. hum2 = who.Parent:FindFirstChild("Humanoid") or who.Parent.Parent:FindFirstChild("Humanoid")
  308. if hum2 then
  309. hum2.PlatformStand = true
  310. end
  311. what2 = who
  312. elseif count2 == 2 then
  313. shoulder2.Enabled = true
  314. weld2:Destroy()
  315. count2 = 0
  316. what2.Massless = false
  317. if what2.Name == "Radio" then
  318. musictime2()
  319. end
  320. task.wait()
  321. what2:SetNetworkOwner(oldowner2)
  322. if hum2 then
  323. hum2.PlatformStand = false
  324. end
  325. wait()
  326. end
  327. end
  328. elseif action == "Grab3" then
  329. if (owner.Character["Left Leg"].CFrame.Position - hit.Position).magnitude <= grabreach then
  330. count3 = count3+1
  331. if count3 == 1 then
  332. local density = who:GetMass()
  333. local friction = .5
  334. local elasticity = 0
  335. local frictionWeight = 10000
  336. local elasticityWeight = 0
  337. local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
  338. who.CustomPhysicalProperties = physProperties
  339. leg.Enabled = false
  340. if who.Name == "Radio" then
  341. musictime()
  342. owner.Character["Left Leg"].CFrame = who.CFrame * CFrame.new(0,1.5,0)
  343. elseif who.Name ~= "Radio" then
  344. owner.Character["Left Leg"].CFrame = hit * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,0.5,0)
  345. end
  346. wait(0.1)
  347. weld3 = Instance.new("WeldConstraint",limbcollider4)
  348. weld3.Part0 = who
  349. weld3.Part1 = limbcollider4
  350. who.Massless = true
  351. oldowner3 = who:GetNetworkOwner()
  352. task.wait()
  353. who:SetNetworkOwner(owner)
  354. hum3 = who.Parent:FindFirstChild("Humanoid") or who.Parent.Parent:FindFirstChild("Humanoid")
  355. if hum3 then
  356. hum3.PlatformStand = true
  357. end
  358. owner.Character["Left Leg"].CFrame = owner.Character["Left Leg"].CFrame * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,2,0)
  359. what3 = who
  360. elseif count3 == 2 then
  361. leg.Enabled = true
  362. weld3:Destroy()
  363. count3 = 0
  364. what3.Massless = false
  365. if what3.Name == "Radio" then
  366. musictime2()
  367. end
  368. task.wait()
  369. what3:SetNetworkOwner(oldowner3)
  370. if hum3 then
  371. hum3.PlatformStand = false
  372. end
  373. wait()
  374. end
  375. end
  376. elseif action == "Grab4" then
  377. if (owner.Character["Right Leg"].CFrame.Position - hit.Position).magnitude <= grabreach then
  378. count4 = count4+1
  379. if count4 == 1 then
  380. local density = who:GetMass()
  381. local friction = .5
  382. local elasticity = 0
  383. local frictionWeight = 10000
  384. local elasticityWeight = 0
  385. local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
  386. who.CustomPhysicalProperties = physProperties
  387. leg2.Enabled = false
  388. if who.Name == "Radio" then
  389. musictime()
  390. owner.Character["Right Leg"].CFrame = who.CFrame * CFrame.new(0,1.5,0)
  391. elseif who.Name ~= "Radio" then
  392. owner.Character["Right Leg"].CFrame = hit * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,0.5,0)
  393. end
  394. wait(0.1)
  395. weld4 = Instance.new("WeldConstraint",limbcollider3)
  396. weld4.Part0 = who
  397. weld4.Part1 = limbcollider3
  398. who.Massless = true
  399. oldowner4 = who:GetNetworkOwner()
  400. task.wait()
  401. who:SetNetworkOwner(owner)
  402. hum4 = who.Parent:FindFirstChild("Humanoid") or who.Parent.Parent:FindFirstChild("Humanoid")
  403. if hum4 then
  404. hum4.PlatformStand = true
  405. end
  406. owner.Character["Right Leg"].CFrame = owner.Character["Right Leg"].CFrame * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,2,0)
  407. what4 = who
  408. elseif count4 == 2 then
  409. leg2.Enabled = true
  410. weld4:Destroy()
  411. count4 = 0
  412. what4.Massless = false
  413. if what4.Name == "Radio" then
  414. musictime2()
  415. end
  416. task.wait()
  417. what4:SetNetworkOwner(oldowner4)
  418. if hum4 then
  419. hum4.PlatformStand = false
  420. end
  421. wait()
  422. end
  423. end
  424. end
  425. end)
  426. end)
  427. wait()
  428. for i,v in pairs(owner.Character:GetDescendants()) do
  429. if v:IsA("Part") then
  430. local nocollide = Instance.new("NoCollisionConstraint",owner.Character.HumanoidRootPart)
  431. nocollide.Part0 = v
  432. nocollide.Part1 = owner.Character.HumanoidRootPart
  433. end
  434. end
  435. NLS([[
  436. wait(0.1)
  437. remote = owner.Character:WaitForChild("The")
  438. remote2 = owner.Character:WaitForChild("The2")
  439. screengui = owner:findFirstChildOfClass("PlayerGui"):WaitForChild("Textlol2")
  440. tl = screengui:WaitForChild("Textlol")
  441. tl.Changed:Connect(function(what)
  442. pcall(function()
  443. remote2:FireServer(tl.Text)
  444. end)
  445. end)
  446. remote3 = owner.Character:WaitForChild("The3")
  447. tl2 = screengui:WaitForChild("Textlol3")
  448. tl2.Changed:Connect(function(what)
  449. pcall(function()
  450. remote3:FireServer(tl2.Text)
  451. end)
  452. end)
  453. remote4 = owner.Character:WaitForChild("The4")
  454. tl3 = screengui:WaitForChild("Textlol4")
  455. tl3.Changed:Connect(function(what)
  456. pcall(function()
  457. remote4:FireServer(tl3.Text)
  458. end)
  459. end)
  460. mouse = owner:GetMouse()
  461. mouse.KeyDown:Connect(function(key)
  462. key = key:lower()
  463. if key == "q" then
  464. remote:FireServer("Grab",mouse.Target,mouse.Hit)
  465. elseif key == "e" then
  466. remote:FireServer("Grab2",mouse.Target,mouse.Hit)
  467. elseif key == "z" then
  468. remote:FireServer("Grab3",mouse.Target,mouse.Hit)
  469. elseif key == "c" then
  470. remote:FireServer("Grab4",mouse.Target,mouse.Hit)
  471. end
  472. end)
  473. ]],owner.PlayerGui)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement