TheUnknownDiscord

arms

Nov 6th, 2021 (edited)
359
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clicked = false
  2. clicked3 = false
  3. block = owner.Character.HumanoidRootPart
  4. arm = Instance.new("Part",script)
  5. arm.Size = Vector3.new(0.75,2,0.75)
  6. owner.Character["Left Arm"]:Destroy()
  7. owner.Character["Right Arm"]:Destroy()
  8.             local Socket = Instance.new("BallSocketConstraint")
  9.             local a1 = Instance.new("Attachment")
  10.             local a2 = Instance.new("Attachment")
  11.             a1.Parent = block
  12.             a2.Parent = arm
  13.             Socket.Parent = block
  14.             Socket.Attachment0 = a1
  15.             Socket.Attachment1 = a2
  16.             a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(-1.5,0.5,0)
  17.             a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0,1,0)
  18. arm3 = Instance.new("Part",script)
  19. arm3.Size = Vector3.new(0.75,2,0.75)
  20.             local Socket3 = Instance.new("BallSocketConstraint")
  21.             local a5 = Instance.new("Attachment")
  22.             local a6 = Instance.new("Attachment")
  23.             a5.Parent = arm
  24.             a6.Parent = arm3
  25.             Socket3.Parent = block
  26.             Socket3.Attachment0 = a5
  27.             Socket3.Attachment1 = a6
  28.             a5.WorldCFrame = a5.Parent.CFrame * CFrame.new(0,-1,0)
  29.             a6.WorldCFrame = a6.Parent.CFrame * CFrame.new(0,1,0)
  30. arm2 = Instance.new("Part",script)
  31. arm2.Size = Vector3.new(0.75,2,0.75)
  32.             local Socket2 = Instance.new("BallSocketConstraint")
  33.             local a3 = Instance.new("Attachment")
  34.             local a4 = Instance.new("Attachment")
  35.             a3.Parent = block
  36.             a4.Parent = arm2
  37.             Socket2.Parent = block
  38.             Socket2.Attachment0 = a3
  39.             Socket2.Attachment1 = a4
  40.             a3.WorldCFrame = a3.Parent.CFrame * CFrame.new(1.5,0.5,0)
  41.             a4.WorldCFrame = a4.Parent.CFrame * CFrame.new(0,1,0)
  42. arm4 = Instance.new("Part",script)
  43. arm4.Size = Vector3.new(0.75,2,0.75)
  44.             local Socket4 = Instance.new("BallSocketConstraint")
  45.             local a7 = Instance.new("Attachment")
  46.             local a8 = Instance.new("Attachment")
  47.             a7.Parent = arm2
  48.             a8.Parent = arm4
  49.             Socket4.Parent = block
  50.             Socket4.Attachment0 = a7
  51.             Socket4.Attachment1 = a8
  52.             a7.WorldCFrame = a7.Parent.CFrame * CFrame.new(0,-1,0)
  53.             a8.WorldCFrame = a8.Parent.CFrame * CFrame.new(0,1,0)
  54. hand = Instance.new("Part",owner.Character.Head)
  55. hand.Size = Vector3.new(1,1,1)
  56. hand.Name = "Hand"
  57.             local Socket5 = Instance.new("BallSocketConstraint")
  58.             local a9 = Instance.new("Attachment")
  59.             local a10 = Instance.new("Attachment")
  60.             a9.Parent = arm4
  61.             a10.Parent = hand
  62.             Socket5.Parent = block
  63.             Socket5.Attachment0 = a9
  64.             Socket5.Attachment1 = a10
  65.             a9.WorldCFrame = a9.Parent.CFrame * CFrame.new(0,-1,0)
  66. hand2 = Instance.new("Part",owner.Character.Head)
  67. hand2.Size = Vector3.new(1,1,1)
  68. hand2.Name = "Hand2"
  69.             local Socket6 = Instance.new("BallSocketConstraint")
  70.             local a11 = Instance.new("Attachment")
  71.             local a12 = Instance.new("Attachment")
  72.             a11.Parent = arm3
  73.             a12.Parent = hand2
  74.             Socket6.Parent = block
  75.             Socket6.Attachment0 = a11
  76.             Socket6.Attachment1 = a12
  77.             a11.WorldCFrame = a11.Parent.CFrame * CFrame.new(0,-1,0)
  78. hand.Anchored = true
  79. hand2.Anchored = true
  80. arm.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1,0)
  81. arm2.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1,0)
  82. arm3.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1,-2)
  83. arm4.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1,-2)
  84. hand.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1,-2)
  85. hand2.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1,-2)
  86. for i,v in pairs(script:GetDescendants()) do
  87. if v:IsA("Part") then
  88. v.CanCollide = false
  89. v:SetNetworkOwner(owner)
  90. end
  91. end
  92. hand.CanCollide = false
  93. hand2.CanCollide = false
  94. local hit = Instance.new("Sound", owner.Character.Head)
  95. hit.SoundId = "rbxassetid://7242037470"
  96. hit.Volume = 2.75
  97. E = Instance.new("RemoteEvent",owner.Character)
  98. E.Name = "The"
  99. cangrab = false
  100. cangrab2 = false
  101. count = 0
  102. count2 = 0
  103. held = nil
  104. held2 = nil
  105. oldowner = nil
  106. oldowner2 = nil
  107. E.OnServerEvent:Connect(function(plr,action,target)
  108. pcall(function()
  109. if action == "grab" then
  110. count = count + 1
  111. clicked = true
  112. hit:Play()
  113. wait(0.5)
  114. clicked = false
  115. if count == 1 then
  116. wait()
  117. if (owner.Character.Torso.CFrame.Position - target.CFrame.Position).magnitude <= 10 then
  118. target:SetNetworkOwner(owner)
  119. alignposition = Instance.new("Weld")
  120. alignposition.Parent = hand2
  121. alignposition.Part0 = hand2
  122. alignposition.Part1 = target
  123. end
  124. elseif count == 2 then
  125. alignposition:Destroy()
  126. wait()
  127. count = 0
  128. end
  129. elseif action == "grab2" then
  130. count2 = count2 + 1
  131. clicked2 = true
  132. hit:Play()
  133. wait(0.5)
  134. clicked2 = false
  135. if count2 == 1 then
  136. wait()
  137. if (owner.Character.Torso.CFrame.Position - target.CFrame.Position).magnitude <= 10 then
  138. target:SetNetworkOwner(owner)
  139. alignposition2 = Instance.new("Weld")
  140. alignposition2.Parent = hand
  141. alignposition2.Part0 = hand
  142. alignposition2.Part1 = target
  143. end
  144. elseif count2 == 2 then
  145. alignposition2:Destroy()
  146. wait()
  147. count2 = 0
  148. end
  149. end
  150. end)
  151. end)
  152. NLS([[
  153. remote2 = owner.Character:WaitForChild("lookremote2")
  154. E = owner.Character:WaitForChild("The")
  155. hand = owner.Character.Head:WaitForChild("Hand")
  156. hand2 = owner.Character.Head:WaitForChild("Hand2")
  157. mouse = owner:GetMouse()
  158. clicked1 = false
  159. clicked2 = false
  160. mouse.KeyDown:Connect(function(key)
  161. key = key:lower()
  162. if key == "q" then
  163. clicked2 = true
  164. E:FireServer("grab",mouse.Target)
  165. wait(0.75)
  166. clicked2 = false
  167. E:FireServer("stop")
  168. elseif key == "e" then
  169. clicked1 = true
  170. E:FireServer("grab2",mouse.Target)
  171. wait(0.75)
  172. clicked1 = false
  173. E:FireServer("stop")
  174. end
  175. end)
  176. ]],owner.PlayerGui)
  177. weight = Instance.new("Part", owner.Character)
  178. weight.CanCollide = false
  179. weight.Transparency = 1
  180. weight.Size = Vector3.new(20,20,20)
  181. weight.CanTouch = false
  182. weight.CFrame = owner.Character.Torso.CFrame
  183. owner.Character.Torso.Anchored = true
  184. weightweld  = Instance.new("Weld")
  185. weightweld.Parent = owner.Character.Torso
  186. weightweld.Part0 = owner.Character.Torso
  187. weightweld.Part1 = weight
  188. weightweld.C1 = CFrame.new(0,50,0)
  189. task.wait()
  190. owner.Character.Torso.Anchored = false
  191. NLS([[ -- thank rufus for head look and stuf
  192. owner = game:GetService("Players").LocalPlayer
  193. owner.Character:WaitForChild("Head")
  194. mouse = owner:GetMouse()
  195. local remote = owner.Character:WaitForChild("lookremote")
  196. local part = Instance.new("Part", owner.Character.Head)
  197. part.Size = Vector3.new(0.1,0.1,0.1)
  198. part.Transparency = 1
  199. part.CanCollide = false
  200. part.Name = "camera"
  201. part:BreakJoints()
  202. local weld = Instance.new("Weld", part)
  203. weld.Part0 = owner.Character.Head
  204. weld.Part1 = part
  205. weld.C0 = CFrame.new(0,0,-1)
  206. while game:GetService("RunService").RenderStepped:wait() do
  207.     remote:FireServer(mouse.Hit.p, mouse.Origin.p, workspace.CurrentCamera.CFrame)
  208.     if (workspace.CurrentCamera.CFrame.p - part.Position).magnitude <= 1.7 then
  209.         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(mouse.Hit.p.x,game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.y,mouse.Hit.p.z))
  210.         workspace.CurrentCamera.FieldOfView = 100
  211.         for i,v in pairs(owner.Character:GetChildren()) do
  212.             if v.ClassName == "Part" or v.ClassName == "MeshPart" and v.Name ~= "Head" then
  213.                 v.LocalTransparencyModifier = 0
  214.             end
  215.             if v.ClassName == "Accessory" then
  216.                 v.Handle.Transparency = 1
  217.             end
  218.         end
  219.         if owner.Character.Head:findFirstChildOfClass("Decal") then
  220.             owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 1
  221.         end
  222.         owner.Character.Head.Transparency = 1
  223.         workspace.CurrentCamera.CameraSubject = part
  224.     else
  225.         for i,v in pairs(owner.Character:GetChildren()) do
  226.             if v.ClassName == "Accessory" then
  227.                 v.Handle.Transparency = 0
  228.             end
  229.         end
  230.         workspace.CurrentCamera.FieldOfView = 70
  231.         owner.Character.Head.Transparency = 0
  232.         if owner.Character.Head:findFirstChildOfClass("Decal") then
  233.             owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 0
  234.         end
  235.         workspace.CurrentCamera.CameraSubject = owner.Character
  236.     end
  237. end
  238. ]], owner.Character)
  239. local remote = Instance.new("RemoteEvent", owner.Character)
  240. remote.Name = "lookremote"
  241. local remote2 = Instance.new("RemoteEvent", owner.Character)
  242. remote2.Name = "lookremote2"
  243. local headd = Instance.new("Weld", owner.Character.Torso)
  244. headd.Part0 = owner.Character.Torso
  245. headd.Part1 = owner.Character.Head
  246. headd.C0 = CFrame.new(0,1,0)
  247. headd.Name = "HeaddWeld"
  248. function look(plr, where, origin, cameracf)
  249.     if plr == owner then
  250.         local lookvector = owner.Character.Torso.CFrame:toObjectSpace(cameracf).lookVector.unit
  251.         headd.C0 = CFrame.new(0,1,0) * CFrame.Angles(lookvector.y,0,0)
  252.         headd.C0 = headd.C0 * CFrame.Angles(0,-lookvector.x,0)
  253.         headd.C0 = headd.C0 * CFrame.new(0,0.5,0)
  254.     end
  255. end
  256. remote.OnServerEvent:connect(look)
  257. function arms(plr,where1,where2)
  258. hand3.CFrame = where1
  259. hand4.CFrame = where2
  260. end
  261. remote2.OnServerEvent:connect(arms)
  262. while true do
  263. wait(game:GetService("RunService").Heartbeat)
  264. remote2:FireServer(hand3.CFrame,hand4.CFrame)
  265. if not clicked and not clicked3 then
  266. hand.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1.5,-2.5)
  267. hand2.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1.5,-2.5)
  268. elseif clicked then
  269. hand.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1.5,-4)
  270. hand2.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1.5,-2.5)
  271. elseif clicked3 then
  272. hand.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1.5,-2.5)
  273. hand2.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1.5,-4)
  274. end
  275. end
RAW Paste Data