Advertisement
kebbyfan

the future

Mar 11th, 2024 (edited)
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.33 KB | None | 0 0
  1. --the future made by ???
  2. --ported to 115 by Xzen PM PST (GMT-8) 2/24/2024 (MM/DD/YY)
  3.  
  4. --[[local owner = script.Parent.Parent
  5. local NLS = require(13482937602)()]]
  6.  
  7.  
  8. local jebc = [[
  9. wait()
  10.  
  11. workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
  12. spawn(function()
  13. local UserInputService = game:GetService("UserInputService")
  14. local RunService = game:GetService("RunService")
  15. local Workspace = game:GetService("Workspace")
  16. local Players = game:GetService("Players")
  17. local localPlayer = Players.LocalPlayer
  18. local camera = Workspace.CurrentCamera
  19. local x, y = 0, 0
  20. local thirdPerson = false
  21. local character, head, health, ragdoll, hat, bodyGyro
  22. local function Character(newCharacter)
  23. wait(0.1)
  24. if newCharacter and newCharacter.Parent then
  25.  
  26. character, head, health, ragdoll, hat = nil, nil, nil, nil, nil
  27. head = newCharacter:WaitForChild("Head")
  28. health = newCharacter:WaitForChild("Health")
  29. ragdoll = newCharacter:WaitForChild("Ragdoll")
  30. bodyGyro = head:WaitForChild("BodyGyro")
  31. hat = newCharacter:WaitForChild("Hat")
  32. if not thirdPerson then
  33. for _, v in pairs(hat:GetChildren()) do
  34. if v:IsA("BasePart") then
  35. v.LocalTransparencyModifier = 1
  36. end
  37. end
  38. end
  39. ragdoll.Changed:connect(function()
  40. for _, v in pairs(hat:GetChildren()) do
  41. if v:IsA("BasePart") then
  42. v.LocalTransparencyModifier = (thirdPerson or ragdoll.Value) and v.Transparency or 1
  43. end
  44. end
  45. end)
  46. character = newCharacter
  47. end
  48. end
  49. --localPlayer.added.OnClientEvent:connect(Character)
  50. UserInputService.InputChanged:connect(function(inputObject)
  51. if inputObject.UserInputType == Enum.UserInputType.MouseMovement then
  52. x = (x - inputObject.Delta.X / 260) % (math.pi * 2)
  53. y = (y - inputObject.Delta.Y / 260) % (math.pi * 2)
  54. end
  55. end)
  56. UserInputService.InputBegan:connect(function(inputObject, processed)
  57. if not processed and inputObject.KeyCode == Enum.KeyCode.V then
  58. thirdPerson = not thirdPerson
  59. end
  60. end)
  61. camera.CameraType = Enum.CameraType.Scriptable
  62. camera.FieldOfView = 90
  63. UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
  64. Character(localPlayer.Character)
  65. spawn(function()
  66. while wait(.2) do
  67. UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
  68. end
  69. end)
  70.  
  71. function lerp(a,b,t)
  72. return a + (b-a)*t
  73. end
  74. local ofs = 0
  75. local trs = 1
  76. RunService:BindToRenderStep("Camera", Enum.RenderPriority.Camera.Value, function()
  77. if character and head then
  78. if ragdoll.Value or thirdPerson then
  79. camera.CFrame = CFrame.new(head.Position) * CFrame.Angles(0, x, 0) * CFrame.Angles(y, 0, 0) * CFrame.new(0, 0, ofs)
  80. ofs = lerp(ofs,14,.1)
  81. trs = lerp(trs,0,.2)
  82. else
  83. camera.CFrame = CFrame.new(head.Position) * CFrame.Angles(0, x, 0) * CFrame.Angles(y, 0, 0) * CFrame.new(0, 0, ofs)
  84. ofs = lerp(ofs,0,.1)
  85. if ofs < 1.2 then
  86. trs = 1
  87. end
  88. end
  89. if health.Value > 0 and not ragdoll.Value then
  90. bodyGyro.MaxTorque = Vector3.new(10000, 10000, 10000)
  91. bodyGyro.CFrame = camera.CFrame
  92. else
  93. bodyGyro.MaxTorque = Vector3.new()
  94. end
  95. if hat then
  96. for _, v in pairs(hat:GetChildren()) do
  97. if v:IsA("BasePart") then
  98. v.LocalTransparencyModifier = trs
  99. end
  100. end
  101. end
  102. end
  103. camera.Focus = camera.CFrame * CFrame.new(0, 0, -20)
  104. end)
  105. end)
  106.  
  107.  
  108.  
  109. spawn(function()
  110.  
  111.  
  112. local UserInputService = game:GetService("UserInputService")
  113. local RunService = game:GetService("RunService")
  114. local Workspace = game:GetService("Workspace")
  115. local Players = game:GetService("Players")
  116. local localPlayer = Players.LocalPlayer
  117. local camera = Workspace.CurrentCamera
  118. local height = 6
  119. local walkspeed = 20
  120. local jumpPower = 300
  121. local character, hips, health, ragdoll, bodyPosition, bodyGyro, bodyVelocity
  122. spawn(function()
  123. wait(0.1)
  124. local resetBindable = Instance.new("BindableEvent")
  125. resetBindable.Event:connect(function()
  126. workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  127. UserInputService.MouseBehavior = Enum.MouseBehavior.Default
  128. script.Parent.Remotes.Reset:FireServer()
  129. end)
  130. game:GetService("StarterGui"):SetCore("ResetButtonCallback", resetBindable)
  131. end)
  132. local GetParts = function(model)
  133. local parts = {}
  134. local function get(obj)
  135. for _, v in pairs(obj:GetChildren()) do
  136. if v:IsA("BasePart") then
  137. table.insert(parts, v)
  138. else
  139. get(v)
  140. end
  141. end
  142. end
  143. get(model)
  144. return parts
  145. end
  146. local function Character(newCharacter)
  147. wait(0.1)
  148. if newCharacter and newCharacter.Parent then
  149. character, hips, health, ragdoll = nil, nil, nil, nil
  150. bodyPosition, bodyGyro, bodyVelocity = nil, nil, nil
  151. hips = newCharacter:WaitForChild("Hips")
  152. health = newCharacter:WaitForChild("Health")
  153. ragdoll = newCharacter:WaitForChild("Ragdoll")
  154. bodyPosition = hips:WaitForChild("BodyPosition")
  155. bodyGyro = hips:WaitForChild("BodyGyro")
  156. bodyVelocity = hips:WaitForChild("BodyVelocity")
  157. character = newCharacter
  158. end
  159. end
  160. local function GrabbingAnchored()
  161. local rightGrip = character["Right Hand"]:FindFirstChild("Grip") or character["Right Hand"]:FindFirstChild("ClientGrip")
  162. if rightGrip and rightGrip.Part0.Anchored then
  163. return true
  164. end
  165. local leftGrip = character["Left Hand"]:FindFirstChild("Grip") or character["Left Hand"]:FindFirstChild("ClientGrip")
  166. if leftGrip and leftGrip.Part0.Anchored then
  167. return true
  168. end
  169. return false
  170. end
  171. --localPlayer.added.OnClientEvent:connect(Character)
  172. UserInputService.InputBegan:connect(function(inputObject, processed)
  173. if not processed and inputObject.KeyCode == Enum.KeyCode.R and ragdoll then
  174. ragdoll.Value = not ragdoll.Value
  175. end
  176. end)
  177. print(localPlayer.Character.Name)
  178. Character(localPlayer.Character)
  179. RunService:BindToRenderStep("Control", Enum.RenderPriority.Input.Value, function()
  180. if character and hips then
  181. if health.Value > 0 and not ragdoll.Value then
  182. bodyGyro.MaxTorque = Vector3.new(10000, 10000, 10000)
  183. bodyGyro.CFrame = camera.CFrame
  184. local h, w = height, walkspeed
  185. local grounded = false
  186. if not UserInputService:GetFocusedTextBox() then
  187. if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
  188. w = w * 5
  189. h=h*1.5
  190. elseif UserInputService:IsKeyDown(Enum.KeyCode.C) then
  191. h = h * 0.4
  192. w = w * 0.8
  193. end
  194. end
  195. local ray = Ray.new(hips.Position, Vector3.new(0, -h, 0))
  196. local hit, position = Workspace:FindPartOnRay(ray, character)
  197. if hit then
  198. grounded = true
  199. bodyPosition.MaxForce = Vector3.new(0, 10000, 0)
  200. bodyPosition.Position = position + Vector3.new(0, h, 0)
  201. else
  202. bodyPosition.MaxForce = Vector3.new()
  203. end
  204. local movement = Vector3.new()
  205. if not UserInputService:GetFocusedTextBox() then
  206. if UserInputService:IsKeyDown(Enum.KeyCode.W) then
  207. movement = movement + Vector3.new(0, 0, -1)
  208. end
  209. if UserInputService:IsKeyDown(Enum.KeyCode.S) then
  210. movement = movement + Vector3.new(0, 0, 1)
  211. end
  212. if UserInputService:IsKeyDown(Enum.KeyCode.D) then
  213. movement = movement + Vector3.new(1, 0, 0)
  214. end
  215. if UserInputService:IsKeyDown(Enum.KeyCode.A) then
  216. movement = movement + Vector3.new(-1, 0, 0)
  217. end
  218. if grounded and UserInputService:IsKeyDown(Enum.KeyCode.Space) and not GrabbingAnchored() then
  219. local force = jumpPower
  220. local mass = 0
  221. local rightGrip = character["Right Hand"]:FindFirstChild("Grip") or character["Right Hand"]:FindFirstChild("ClientGrip")
  222. if rightGrip then
  223. local parts = GetParts(rightGrip.Part0.Parent)
  224. for _, part in pairs(parts) do
  225. mass = mass + part:GetMass()
  226. end
  227. end
  228. local leftGrip = character["Left Hand"]:FindFirstChild("Grip") or character["Left Hand"]:FindFirstChild("ClientGrip")
  229. if leftGrip then
  230. local parts = GetParts(leftGrip.Part0.Parent)
  231. for _, part in pairs(parts) do
  232. mass = mass + part:GetMass()
  233. end
  234. end
  235. force = force / math.max(mass * 0.1, 1)
  236. character:SetPrimaryPartCFrame(hips.CFrame + Vector3.new(0, 0.5, 0))
  237. bodyPosition.MaxForce = Vector3.new()
  238. character["Right Foot"].BodyPosition.MaxForce = Vector3.new()
  239. character["Left Foot"].BodyPosition.MaxForce = Vector3.new()
  240. hips.Velocity = hips.Velocity + Vector3.new(0, force, 0)
  241. end
  242. end
  243. if 0 < movement.magnitude then
  244. movement = camera.CFrame:vectorToWorldSpace(movement)
  245. movement = Vector3.new(movement.X, 0, movement.Z).unit
  246. end
  247. bodyVelocity.MaxForce = Vector3.new(10000, 0, 10000)
  248. bodyVelocity.Velocity = movement * w
  249. else
  250. bodyGyro.MaxTorque = Vector3.new()
  251. bodyVelocity.MaxForce = Vector3.new()
  252. bodyPosition.MaxForce = Vector3.new()
  253. end
  254. end
  255. end)
  256.  
  257. end)
  258. ]]
  259. local jeb1c = [[
  260. spawn(function()
  261.  
  262. wait()
  263. local UserInputService = game:GetService("UserInputService")
  264. local RunService = game:GetService("RunService")
  265. local Workspace = game:GetService("Workspace")
  266. local Players = game:GetService("Players")
  267. local localPlayer = Players.LocalPlayer
  268. local character = script.Parent
  269. local camera = Workspace.CurrentCamera
  270. local head = character:WaitForChild("Head")
  271. local ragdoll = character:WaitForChild("Ragdoll")
  272. local rightHand = character:WaitForChild("Right Hand")
  273. local leftHand = character:WaitForChild("Left Hand")
  274. local rightPosition = rightHand:WaitForChild("BodyPosition")
  275. local leftPosition = leftHand:WaitForChild("BodyPosition")
  276. local rightGyro = rightHand:WaitForChild("BodyGyro")
  277. local leftGyro = leftHand:WaitForChild("BodyGyro")
  278. local item = false
  279. local emoting = false
  280. local range = 12
  281. local rightPart, rightOffset, leftPart, leftOffset
  282. local emotes = {
  283. Clap = function()
  284. local t = 1.5
  285. local start = tick()
  286. repeat
  287. RunService.RenderStepped:wait()
  288. rightPosition.Position = camera.CFrame:pointToWorldSpace(Vector3.new(2 + math.sin(tick() * 50) * 2, -1, -3))
  289. leftPosition.Position = camera.CFrame:pointToWorldSpace(Vector3.new(-2 - math.sin(tick() * 50) * 2, -1, -3))
  290. rightGyro.CFrame = camera.CFrame * CFrame.Angles(math.pi / 2, 0, 0)
  291. leftGyro.CFrame = camera.CFrame * CFrame.Angles(math.pi / 2, 0, 0)
  292. until t <= tick() - start
  293. end
  294. }, function()
  295. local t = 1.5
  296. local start = tick()
  297. repeat
  298. RunService.RenderStepped:wait()
  299. rightPosition.Position = camera.CFrame:pointToWorldSpace(Vector3.new(2 + math.sin(tick() * 50) * 2, -1, -3))
  300. leftPosition.Position = camera.CFrame:pointToWorldSpace(Vector3.new(-2 - math.sin(tick() * 50) * 2, -1, -3))
  301. rightGyro.CFrame = camera.CFrame * CFrame.Angles(math.pi / 2, 0, 0)
  302. leftGyro.CFrame = camera.CFrame * CFrame.Angles(math.pi / 2, 0, 0)
  303. until t <= tick() - start
  304. end
  305. local function CanGrab(part)
  306. if part.Anchored then
  307. return true
  308. end
  309. if part.Parent:FindFirstChild("HumanoidRootPart") then
  310. return true
  311. end
  312. local parts = part:GetConnectedParts(true)
  313.  
  314. return true
  315. end
  316. local function Emote(emote)
  317. if emotes[emote] and not emoting then
  318. emoting = true
  319. emotes[emote]()
  320. emoting = false
  321. end
  322. end
  323.  
  324. UserInputService.InputBegan:connect(function(inputObject, processed)
  325. if not processed then
  326. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  327. local ray = Ray.new(head.Position, camera.CFrame.lookVector * range)
  328. local hit, pos, normal = game.Workspace:FindPartOnRay(ray, character)
  329. if hit and CanGrab(hit) then
  330. --leftHand:WaitForChild('Grab'):Play()
  331. local cframe = CFrame.new()
  332. if hit.Anchored then
  333. cframe = CFrame.new(pos, pos + normal) * CFrame.Angles(0, math.pi, 0) * CFrame.Angles(math.pi / 2, 0, 0) * CFrame.new(0, 0.3, 0)
  334. else
  335. cframe = CFrame.new(pos, pos + camera.CFrame.lookVector) * CFrame.Angles(math.pi / 2, 0, 0) * CFrame.new(0, 0.3, 0)
  336. end
  337. local offset = hit.CFrame:toObjectSpace(cframe)
  338. script.Parent.Remotes.Grab:FireServer(hit, offset, "Left")
  339. local motor = Instance.new("Motor6D")
  340. motor.Name = "ClientGrip"
  341. motor.Part0 = hit
  342. motor.Part1 = leftHand
  343. motor.C0 = offset
  344. motor.Parent = leftHand
  345. end
  346. elseif inputObject.KeyCode == Enum.KeyCode.F then
  347. Emote("clap")
  348. elseif inputObject.UserInputType == Enum.UserInputType.MouseButton2 then
  349. local ray = Ray.new(head.Position, camera.CFrame.lookVector * range)
  350. local hit, pos, normal = game.Workspace:FindPartOnRay(ray, character)
  351. if hit and CanGrab(hit) then
  352. --rightHand:WaitForChild('Grab'):Play()
  353. local cframe = CFrame.new()
  354. if hit.Anchored then
  355. cframe = CFrame.new(pos, pos + normal) * CFrame.Angles(0, math.pi, 0) * CFrame.Angles(math.pi / 2, 0, 0) * CFrame.new(0, 0.3, 0)
  356. else
  357. cframe = CFrame.new(pos, pos + camera.CFrame.lookVector) * CFrame.Angles(math.pi / 2, 0, 0) * CFrame.new(0, 0.3, 0)
  358. end
  359. local offset = hit.CFrame:toObjectSpace(cframe)
  360. script.Parent.Remotes.Grab:FireServer(hit, offset, "Right")
  361. local motor = Instance.new("Motor6D")
  362. motor.Name = "ClientGrip"
  363. motor.Part0 = hit
  364. motor.Part1 = rightHand
  365. motor.C0 = offset
  366. motor.Parent = rightHand
  367. end
  368. end
  369. if inputObject.KeyCode == Enum.KeyCode.Q then
  370. if leftHand:FindFirstChild("ServerGrip") then
  371. local prop = leftHand.ServerGrip.Part0
  372. script.Parent.Remotes.Unanchor:FireServer(prop)
  373. elseif leftHand:FindFirstChild("ClientGrip") then
  374. local prop = leftHand.ClientGrip.Part0
  375. script.Parent.Remotes.Unanchor:FireServer(prop)
  376. end
  377. elseif inputObject.KeyCode == Enum.KeyCode.E then
  378. if rightHand:FindFirstChild("ServerGrip") then
  379. local prop = rightHand.ServerGrip.Part0
  380. script.Parent.Remotes.Unanchor:FireServer(prop)
  381. elseif rightHand:FindFirstChild("ClientGrip") then
  382. local prop = rightHand.ClientGrip.Part0
  383. script.Parent.Remotes.Unanchor:FireServer(prop)
  384. end
  385. end
  386. end
  387. end)
  388. UserInputService.InputEnded:connect(function(inputObject)
  389. if inputObject.KeyCode == Enum.KeyCode.Q then
  390. if leftHand:FindFirstChild("Grip") then
  391. local prop = leftHand.Grip.Part0.Parent
  392. if prop:FindFirstChild("Events") then
  393. prop.Events.Deactivate:FireServer()
  394. end
  395. end
  396. elseif inputObject.KeyCode == Enum.KeyCode.E and rightHand:FindFirstChild("Grip") then
  397. local prop = rightHand.Grip.Part0.Parent
  398. if prop:FindFirstChild("Events") then
  399. prop.Events.Deactivate:FireServer()
  400. end
  401. end
  402. end)
  403. rightHand.ChildAdded:connect(function(child)
  404. if child.Name == "Grip" and rightHand:FindFirstChild("ClientGrip") then
  405. rightHand.ClientGrip:Destroy()
  406. end
  407. end)
  408. leftHand.ChildAdded:connect(function(child)
  409. if child.Name == "Grip" and leftHand:FindFirstChild("ClientGrip") then
  410. leftHand.ClientGrip:Destroy()
  411. end
  412. end)
  413. UserInputService.InputEnded:connect(function(inputObject, processed)
  414. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  415. if leftHand:FindFirstChild("ClientGrip") then
  416. leftHand.ClientGrip:Destroy()
  417. end
  418. if leftHand:FindFirstChild("Grip") then
  419. leftHand.Grip:Destroy()
  420. end
  421. script.Parent.Remotes.Drop:FireServer("Left")
  422. elseif inputObject.UserInputType == Enum.UserInputType.MouseButton2 then
  423. if rightHand:FindFirstChild("ClientGrip") then
  424. rightHand.ClientGrip:Destroy()
  425. end
  426. if rightHand:FindFirstChild("Grip") then
  427. rightHand.Grip:Destroy()
  428. end
  429. script.Parent.Remotes.Drop:FireServer("Right")
  430. end
  431. end)
  432. RunService:BindToRenderStep("Animate", Enum.RenderPriority.Character.Value, function()
  433. if ragdoll.Value then
  434. rightPosition.MaxForce = Vector3.new()
  435. leftPosition.MaxForce = Vector3.new()
  436. rightGyro.MaxTorque = Vector3.new()
  437. leftGyro.MaxTorque = Vector3.new()
  438. else
  439. rightPosition.MaxForce = Vector3.new(10000, 10000, 10000)
  440. leftPosition.MaxForce = Vector3.new(10000, 10000, 10000)
  441. rightGyro.MaxTorque = Vector3.new(10000, 10000, 10000)
  442. leftGyro.MaxTorque = Vector3.new(10000, 10000, 10000)
  443. if not emoting then
  444. rightPosition.Position = head.CFrame:pointToWorldSpace(Vector3.new(2, -2, -3.5))
  445. leftPosition.Position = head.CFrame:pointToWorldSpace(Vector3.new(-2, -2, -3.5))
  446. rightGyro.CFrame = head.CFrame * CFrame.Angles(math.pi / 2, 0, 0)
  447. leftGyro.CFrame = head.CFrame * CFrame.Angles(math.pi / 2, 0, 0)
  448. end
  449. end
  450. end)
  451.  
  452. end)
  453.  
  454. spawn(function()
  455. local UserInputService = game:GetService("UserInputService")
  456. local RunService = game:GetService("RunService")
  457. local Workspace = game:GetService("Workspace")
  458. local Players = game:GetService("Players")
  459. local localPlayer = Players.LocalPlayer
  460. local character = script.Parent
  461. local hips = character:WaitForChild("Hips")
  462. local ragdoll = character:WaitForChild("Ragdoll")
  463. local camera = Workspace.CurrentCamera
  464. local lastUpdate = tick()
  465. local height = 6
  466. local right = true
  467. local rightFoot = character:WaitForChild("Right Foot")
  468. local leftFoot = character:WaitForChild("Left Foot")
  469. local rightPosition = rightFoot:WaitForChild("BodyPosition")
  470. local leftPosition = leftFoot:WaitForChild("BodyPosition")
  471. local rightGyro = rightFoot:WaitForChild("BodyGyro")
  472. local leftGyro = leftFoot:WaitForChild("BodyGyro")
  473. while true do
  474. wait(0.125)
  475. local velocity = Vector3.new(hips.Velocity.X, 0, hips.Velocity.Z)
  476. local speed = velocity.magnitude
  477. if not ragdoll.Value then
  478. if speed >= 5 then
  479. right = not right
  480. if right then
  481. local hipPos = hips.CFrame:pointToWorldSpace(Vector3.new(1, 0, 0))
  482. local footPos = hipPos + Vector3.new(0, -height, 0) + velocity / 4
  483. local ray = Ray.new(hipPos, footPos - hipPos)
  484. local hit, pos = Workspace:FindPartOnRay(ray, character)
  485. if hit then
  486. rightPosition.MaxForce = Vector3.new(10000, 10000, 10000)
  487. rightGyro.MaxTorque = Vector3.new(10000, 10000, 10000)
  488. rightPosition.Position = pos
  489. rightGyro.CFrame = CFrame.new(Vector3.new(), velocity)
  490. rightFoot.Boing:Play()
  491. else
  492. rightPosition.MaxForce = Vector3.new()
  493. rightGyro.MaxTorque = Vector3.new()
  494. end
  495. else
  496. local hipPos = hips.CFrame:pointToWorldSpace(Vector3.new(-1, 0, 0))
  497. local footPos = hipPos + Vector3.new(0, -height, 0) + velocity / 4
  498. local ray = Ray.new(hipPos, footPos - hipPos)
  499. local hit, pos = Workspace:FindPartOnRay(ray, character)
  500. if hit then
  501. leftPosition.MaxForce = Vector3.new(10000, 10000, 10000)
  502. leftGyro.MaxTorque = Vector3.new(10000, 10000, 10000)
  503. leftPosition.Position = pos
  504. leftGyro.CFrame = CFrame.new(Vector3.new(), velocity)
  505. leftFoot.Boing:Play()
  506. else
  507. leftPosition.MaxForce = Vector3.new()
  508. leftGyro.MaxTorque = Vector3.new()
  509. end
  510. end
  511. else
  512. local rightRay = Ray.new(hips.CFrame:pointToWorldSpace(Vector3.new(1, 0, 0)), Vector3.new(0, -height, 0))
  513. local rHit, rPos = Workspace:FindPartOnRay(rightRay, character)
  514. if rHit then
  515. rightPosition.MaxForce = Vector3.new(10000, 10000, 10000)
  516. rightGyro.MaxTorque = Vector3.new(10000, 10000, 10000)
  517. rightPosition.Position = rPos
  518. rightGyro.CFrame = CFrame.new(Vector3.new(), Vector3.new(hips.CFrame.lookVector.X, 0, hips.CFrame.lookVector.Z))
  519. else
  520. rightPosition.MaxForce = Vector3.new()
  521. rightGyro.MaxTorque = Vector3.new()
  522. end
  523. local leftRay = Ray.new(hips.CFrame:pointToWorldSpace(Vector3.new(-1, 0, 0)), Vector3.new(0, -height, 0))
  524. local lHit, lPos = Workspace:FindPartOnRay(leftRay, character)
  525. if lHit then
  526. leftPosition.MaxForce = Vector3.new(10000, 10000, 10000)
  527. leftGyro.MaxTorque = Vector3.new(10000, 10000, 10000)
  528. leftPosition.Position = lPos
  529. leftGyro.CFrame = CFrame.new(Vector3.new(), Vector3.new(hips.CFrame.lookVector.X, 0, hips.CFrame.lookVector.Z))
  530. else
  531. leftPosition.MaxForce = Vector3.new()
  532. leftGyro.MaxTorque = Vector3.new()
  533. end
  534. end
  535. else
  536. rightPosition.MaxForce = Vector3.new()
  537. rightGyro.MaxTorque = Vector3.new()
  538. leftPosition.MaxForce = Vector3.new()
  539. leftGyro.MaxTorque = Vector3.new()
  540. end
  541. end
  542.  
  543. end)
  544. ]]
  545.  
  546.  
  547.  
  548. local remotes = Instance.new("Folder",script)
  549. remotes.Name = "Remotes"
  550.  
  551. local grab = Instance.new("RemoteEvent",remotes)
  552. local reset = Instance.new("RemoteEvent",remotes)
  553. local drop = Instance.new("RemoteEvent",remotes)
  554. local unanchor = Instance.new("RemoteEvent",remotes)
  555. drop.Name = "Drop"
  556. grab.Name = "Grab"
  557. reset.Name = "Reset"
  558. unanchor.Name = "Unanchor"
  559.  
  560. reset.OnServerEvent:Connect(function(guy)
  561. guy:LoadCharacter(true)
  562. end)
  563.  
  564. drop.OnServerEvent:Connect(function(plr,arm)
  565. local character = plr.Character
  566. local rightHand = character["Right Hand"]
  567. local leftHand = character["Left Hand"]
  568. if arm == "Left" then
  569. if leftHand:FindFirstChild("ServerGrip") then
  570. leftHand:FindFirstChild("ServerGrip"):Destroy()
  571. end
  572. end
  573. if arm == "Right" then
  574. if rightHand:FindFirstChild("ServerGrip") then
  575. rightHand:FindFirstChild("ServerGrip"):Destroy()
  576. end
  577. end
  578. end)
  579.  
  580. unanchor.OnServerEvent:connect(function(plr,part)
  581. part.Anchored = not part.Anchored
  582. end)
  583.  
  584. grab.OnServerEvent:Connect(function(plr,hit,offset,arm)
  585. local anyanchored = false
  586. for i,v in pairs(hit:GetConnectedParts()) do
  587. if v.Anchored == true then
  588. anyanchored = true
  589. end
  590. end
  591. if hit.Anchored == false and anyanchored == false then
  592. hit:SetNetworkOwner(owner)
  593. end
  594. local character = plr.Character
  595. local rightHand = character["Right Hand"]
  596. local leftHand = character["Left Hand"]
  597. if arm == "Left" then
  598. local motor = Instance.new("Motor6D")
  599. motor.Name = "ServerGrip"
  600. motor.Part0 = hit
  601. motor.Part1 = leftHand
  602. motor.C0 = offset
  603. motor.Parent = leftHand
  604. end
  605. if arm == "Right" then
  606. local motor = Instance.new("Motor6D")
  607. motor.Name = "ServerGrip"
  608. motor.Part0 = hit
  609. motor.Part1 = rightHand
  610. motor.C0 = offset
  611. motor.Parent = rightHand
  612. end
  613. end)
  614.  
  615.  
  616.  
  617. local added = Instance.new("RemoteEvent",owner)
  618. added.Name = "added"
  619.  
  620.  
  621.  
  622. --charakter
  623. owner.Character:Destroy()
  624. local handsome_man = Instance.new("Model")
  625. local left_hand = Instance.new("Part")
  626. local mesh = Instance.new("SpecialMesh")
  627. local wrist = Instance.new("Attachment")
  628. local bodyposition = Instance.new("BodyPosition")
  629. local bodygyro = Instance.new("BodyGyro")
  630. local grab = Instance.new("Sound")
  631. local neck = Instance.new("Part")
  632. local mesh_2 = Instance.new("CylinderMesh", neck)
  633. local weld = Instance.new("Weld")
  634. local neck_2 = Instance.new("Attachment")
  635. local right_hand = Instance.new("Part")
  636. local mesh_3 = Instance.new("SpecialMesh")
  637. local wrist_2 = Instance.new("Attachment")
  638. local bodyposition_2 = Instance.new("BodyPosition")
  639. local bodygyro_2 = Instance.new("BodyGyro")
  640. local grab_2 = Instance.new("Sound")
  641. local right_leg = Instance.new("Part")
  642. local mesh_4 = Instance.new("CylinderMesh", right_leg)
  643. local hip = Instance.new("Attachment")
  644. local knee = Instance.new("Attachment")
  645. local ballsocketconstraint = Instance.new("BallSocketConstraint")
  646. local torso = Instance.new("Part")
  647. local right_shoulder = Instance.new("Attachment")
  648. local left_shoulder = Instance.new("Attachment")
  649. local ballsocketconstraint_2 = Instance.new("BallSocketConstraint")
  650. local ballsocketconstraint_3 = Instance.new("BallSocketConstraint")
  651. local neck_3 = Instance.new("Attachment")
  652. local ballsocketconstraint_4 = Instance.new("BallSocketConstraint")
  653. local stab = Instance.new("Sound")
  654. local weld_2 = Instance.new("ManualWeld")
  655. local left_foot = Instance.new("Part")
  656. local mesh_5 = Instance.new("SpecialMesh")
  657. local ankle = Instance.new("Attachment")
  658. local bodygyro_3 = Instance.new("BodyGyro")
  659. local bodyposition_3 = Instance.new("BodyPosition")
  660. local boing = Instance.new("Sound")
  661. local right_forearm = Instance.new("Part")
  662. local mesh_6 = Instance.new("CylinderMesh", right_forearm)
  663. local elbow = Instance.new("Attachment")
  664. local wrist_3 = Instance.new("Attachment")
  665. local ballsocketconstraint_5 = Instance.new("BallSocketConstraint")
  666. local left_leg = Instance.new("Part")
  667. local mesh_7 = Instance.new("CylinderMesh", left_leg)
  668. local hip_2 = Instance.new("Attachment")
  669. local knee_3 = Instance.new("Attachment")
  670. local ballsocketconstraint_6 = Instance.new("BallSocketConstraint")
  671. local left_arm = Instance.new("Part")
  672. local mesh_8 = Instance.new("CylinderMesh", left_arm)
  673. local shoulder_2 = Instance.new("Attachment")
  674. local elbow_2 = Instance.new("Attachment")
  675. local ballsocketconstraint_7 = Instance.new("BallSocketConstraint")
  676. local right_foreleg = Instance.new("Part")
  677. local mesh_9 = Instance.new("CylinderMesh", right_foreleg)
  678. local ankle_2 = Instance.new("Attachment")
  679. local knee_2 = Instance.new("Attachment")
  680. local ballsocketconstraint_8 = Instance.new("BallSocketConstraint")
  681. local right_foot = Instance.new("Part")
  682. local mesh_10 = Instance.new("SpecialMesh")
  683. local ankle_3 = Instance.new("Attachment")
  684. local bodygyro_4 = Instance.new("BodyGyro")
  685. local bodyposition_4 = Instance.new("BodyPosition")
  686. local boing_2 = Instance.new("Sound")
  687. local hips = Instance.new("Part")
  688. local right_hip = Instance.new("Attachment")
  689. local left_hip = Instance.new("Attachment")
  690. local ballsocketconstraint_9 = Instance.new("BallSocketConstraint")
  691. local ballsocketconstraint_10 = Instance.new("BallSocketConstraint")
  692. local weld_3 = Instance.new("Weld")
  693. local bodygyro_5 = Instance.new("BodyGyro")
  694. local bodyposition_5 = Instance.new("BodyPosition")
  695. local bodyvelocity = Instance.new("BodyVelocity")
  696. local weld_4 = Instance.new("ManualWeld")
  697. local right_arm = Instance.new("Part")
  698. local mesh_11 = Instance.new("CylinderMesh", right_arm)
  699. local shoulder = Instance.new("Attachment")
  700. local elbow_4 = Instance.new("Attachment")
  701. local ballsocketconstraint_11 = Instance.new("BallSocketConstraint")
  702.  
  703.  
  704. local head = Instance.new("Seat")
  705.  
  706.  
  707. local bodygyro_6 = Instance.new("BodyGyro")
  708. local namegui = Instance.new("BillboardGui")
  709. local namelabel = Instance.new("TextLabel")
  710. local uuhhh = Instance.new("Sound")
  711. local face = Instance.new("Decal")
  712. local left_forearm = Instance.new("Part")
  713. local mesh_12 = Instance.new("CylinderMesh", left_forearm)
  714. local wrist_4 = Instance.new("Attachment")
  715. local elbow_3 = Instance.new("Attachment")
  716. local ballsocketconstraint_12 = Instance.new("BallSocketConstraint")
  717. local left_foreleg = Instance.new("Part")
  718. local mesh_13 = Instance.new("CylinderMesh", left_foreleg)
  719. local ankle_4 = Instance.new("Attachment")
  720. local knee_4 = Instance.new("Attachment")
  721. local ballsocketconstraint_13 = Instance.new("BallSocketConstraint")
  722. local health = Instance.new("NumberValue")
  723. local max = Instance.new("NumberValue")
  724. local right_elbow = Instance.new("Part")
  725. local elbow_5 = Instance.new("Attachment")
  726. local ballsocketconstraint_14 = Instance.new("BallSocketConstraint")
  727. local left_elbow = Instance.new("Part")
  728. local elbow_6 = Instance.new("Attachment")
  729. local ballsocketconstraint_15 = Instance.new("BallSocketConstraint")
  730. local left_knee = Instance.new("Part")
  731. local knee_5 = Instance.new("Attachment")
  732. local ballsocketconstraint_16 = Instance.new("BallSocketConstraint")
  733. local right_knee = Instance.new("Part")
  734. local knee_6 = Instance.new("Attachment")
  735. local ballsocketconstraint_17 = Instance.new("BallSocketConstraint")
  736. local ragdoll = Instance.new("BoolValue")
  737. local hat = Instance.new("Model")
  738. local handle = Instance.new("Part")
  739. local mesh_14 = Instance.new("SpecialMesh")
  740. local weld_5 = Instance.new("ManualWeld")
  741. local union1 = Instance.new("Model")
  742. local part_3 = Instance.new("Part")
  743. local weld_6 = Instance.new("ManualWeld")
  744. local weld_7 = Instance.new("ManualWeld")
  745. local weld_8 = Instance.new("ManualWeld")
  746. local part_2 = Instance.new("Part")
  747. local union2 = Instance.new("Model")
  748. local part = Instance.new("Part")
  749. local part_4 = Instance.new("Part")
  750. local weld_9 = Instance.new("ManualWeld")
  751. local part_5 = Instance.new("Part")
  752. local weld_10 = Instance.new("ManualWeld")
  753. local part_6 = Instance.new("Part")
  754. local weld_11 = Instance.new("ManualWeld")
  755.  
  756. handsome_man.PrimaryPart = hips
  757. handsome_man.Name = "bdbdb"
  758. left_hand.Size = Vector3.new(1, 0.6, 1)
  759. left_hand.BottomSurface = Enum.SurfaceType.Smooth
  760. left_hand.Material = Enum.Material.SmoothPlastic
  761. left_hand.Color = Color3.new(0.956863, 0.803922, 0.184314)
  762. left_hand.BrickColor = BrickColor.new("Bright yellow")
  763. left_hand.TopSurface = Enum.SurfaceType.Smooth
  764. left_hand.Name = "Left Hand"
  765. left_hand.Parent = handsome_man
  766. left_hand.CFrame = CFrame.new(15.11, 5, 5.51)
  767. mesh.Offset = Vector3.new(0, 0.3, 0.1)
  768. mesh.MeshId = "rbxassetid://73031656"
  769. mesh.Scale = Vector3.new(3, 3, 3)
  770. mesh.MeshType = Enum.MeshType.FileMesh
  771. mesh.Parent = left_hand
  772. wrist.Position = Vector3.new(0, 0.3, 0)
  773. wrist.Name = "Wrist"
  774. wrist.CFrame = CFrame.new(0, 0.3, 0)
  775. wrist.Parent = left_hand
  776. bodyposition.MaxForce = Vector3.new(0, 0, 0)
  777. bodyposition.D = 200
  778. bodyposition.Parent = left_hand
  779. bodygyro.MaxTorque = Vector3.new(0, 0, 0)
  780. bodygyro.P = 10000
  781. bodygyro.Parent = left_hand
  782. grab.Volume = 8
  783. grab.Name = "Grab"
  784. grab.SoundId = "rbxassetid://160432334"
  785. grab.Parent = left_hand
  786. neck.Size = Vector3.new(0.8, 0.2, 0.8)
  787. neck.BottomSurface = Enum.SurfaceType.Smooth
  788. neck.Material = Enum.Material.SmoothPlastic
  789. neck.Color = Color3.new(0.956863, 0.803922, 0.184314)
  790. neck.BrickColor = BrickColor.new("Bright yellow")
  791. neck.TopSurface = Enum.SurfaceType.Smooth
  792. neck.Name = "Neck"
  793. neck.Parent = handsome_man
  794. neck.CFrame = CFrame.new(16.489, 9.89, 5.548)
  795. weld.Part0 = neck
  796. weld.C0 = CFrame.new(0, 1, 0)
  797. weld.Part1 = head
  798. weld.Parent = neck
  799. neck_2.Position = Vector3.new(0, -0.1, 0)
  800. neck_2.Name = "Neck"
  801. neck_2.CFrame = CFrame.new(0, -0.1, 0)
  802. neck_2.Parent = neck
  803. right_hand.Size = Vector3.new(1, 0.6, 1)
  804. right_hand.BottomSurface = Enum.SurfaceType.Smooth
  805. right_hand.Material = Enum.Material.SmoothPlastic
  806. right_hand.Color = Color3.new(0.956863, 0.803922, 0.184314)
  807. right_hand.BrickColor = BrickColor.new("Bright yellow")
  808. right_hand.TopSurface = Enum.SurfaceType.Smooth
  809. right_hand.Name = "Right Hand"
  810. right_hand.Parent = handsome_man
  811. right_hand.CFrame = CFrame.new(17.91, 5, 5.51)
  812. mesh_3.Offset = Vector3.new(0, 0.3, 0.1)
  813. mesh_3.MeshId = "rbxassetid://73031750"
  814. mesh_3.Scale = Vector3.new(3, 3, 3)
  815. mesh_3.MeshType = Enum.MeshType.FileMesh
  816. mesh_3.Parent = right_hand
  817. wrist_2.Position = Vector3.new(0, 0.3, 0)
  818. wrist_2.Name = "Wrist"
  819. wrist_2.CFrame = CFrame.new(0, 0.3, 0)
  820. wrist_2.Parent = right_hand
  821. bodyposition_2.MaxForce = Vector3.new(0, 0, 0)
  822. bodyposition_2.D = 200
  823. bodyposition_2.Parent = right_hand
  824. bodygyro_2.MaxTorque = Vector3.new(0, 0, 0)
  825. bodygyro_2.P = 10000
  826. bodygyro_2.Parent = right_hand
  827. grab_2.Volume = 8
  828. grab_2.Name = "Grab"
  829. grab_2.SoundId = "rbxassetid://160432334"
  830. grab_2.Parent = right_hand
  831. right_leg.Size = Vector3.new(1, 3, 1)
  832. right_leg.BottomSurface = Enum.SurfaceType.Smooth
  833. right_leg.Material = Enum.Material.SmoothPlastic
  834. right_leg.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  835. right_leg.BrickColor = BrickColor.new("Bright blue")
  836. right_leg.TopSurface = Enum.SurfaceType.Smooth
  837. right_leg.Name = "Right Leg"
  838. right_leg.Parent = handsome_man
  839. right_leg.CFrame = CFrame.new(17.01, 5.3, 5.51)
  840. hip.Position = Vector3.new(0, 1.5, 0)
  841. hip.Name = "Hip"
  842. hip.CFrame = CFrame.new(0, 1.5, 0)
  843. hip.Parent = right_leg
  844. knee.Position = Vector3.new(0, -1.5, 0)
  845. knee.Name = "Knee"
  846. knee.CFrame = CFrame.new(0, -1.5, 0)
  847. knee.Parent = right_leg
  848. ballsocketconstraint.Attachment0 = knee
  849. ballsocketconstraint.Attachment1 = knee_2
  850. ballsocketconstraint.Parent = right_leg
  851. torso.Size = Vector3.new(2, 2.5, 1)
  852. torso.Material = Enum.Material.SmoothPlastic
  853. torso.Name = "Torso"
  854. torso.Color = Color3.new(0.294118, 0.592157, 0.294118)
  855. torso.BrickColor = BrickColor.new("Bright green")
  856. torso.Transparency = 1
  857. torso.Parent = handsome_man
  858. torso.CFrame = CFrame.new(16.51, 8.55, 5.51)
  859. right_shoulder.Position = Vector3.new(1.2, 0.8, 0)
  860. right_shoulder.Name = "Right Shoulder"
  861. right_shoulder.CFrame = CFrame.new(1.2, 0.8, 0)
  862. right_shoulder.Parent = torso
  863. left_shoulder.Position = Vector3.new(-1.2, 0.8, 0)
  864. left_shoulder.Name = "Left Shoulder"
  865. left_shoulder.CFrame = CFrame.new(-1.2, 0.8, 0)
  866. left_shoulder.Parent = torso
  867. ballsocketconstraint_2.Attachment0 = right_shoulder
  868. ballsocketconstraint_2.Attachment1 = shoulder
  869. ballsocketconstraint_2.Parent = torso
  870. ballsocketconstraint_3.Attachment0 = left_shoulder
  871. ballsocketconstraint_3.Attachment1 = shoulder_2
  872. ballsocketconstraint_3.Parent = torso
  873. neck_3.Position = Vector3.new(0, 1.25, 0)
  874. neck_3.Name = "Neck"
  875. neck_3.CFrame = CFrame.new(0, 1.25, 0)
  876. neck_3.Parent = torso
  877. ballsocketconstraint_4.Attachment0 = neck_3
  878. ballsocketconstraint_4.Attachment1 = neck_2
  879. ballsocketconstraint_4.Parent = torso
  880. stab.Volume = 2
  881. stab.Name = "Stab"
  882. stab.SoundId = "rbxassetid://345698124"
  883. stab.Parent = torso
  884. weld_2.Part1 = part
  885. weld_2.C1 = CFrame.new(0, -0.75, 0.5) * CFrame.Angles(0, -1.571, 0)
  886. weld_2.Part0 = torso
  887. weld_2.Name = "Weld"
  888. weld_2.Parent = torso
  889. left_foot.Size = Vector3.new(1, 1, 2)
  890. left_foot.BrickColor = BrickColor.new("Black")
  891. left_foot.Name = "Left Foot"
  892. left_foot.Color = Color3.new(0.105882, 0.164706, 0.207843)
  893. left_foot.TopSurface = Enum.SurfaceType.Smooth
  894. left_foot.BottomSurface = Enum.SurfaceType.Smooth
  895. left_foot.Parent = handsome_man
  896. left_foot.CFrame = CFrame.new(16.01, 0.5, 5.01)
  897. mesh_5.MeshType = Enum.MeshType.FileMesh
  898. mesh_5.MeshId = "http://www.roblox.com/asset/?id=108884514"
  899. mesh_5.Parent = left_foot
  900. ankle.Position = Vector3.new(0, 0.3, 0.5)
  901. ankle.Name = "Ankle"
  902. ankle.CFrame = CFrame.new(0, 0.3, 0.5)
  903. ankle.Parent = left_foot
  904. bodygyro_3.MaxTorque = Vector3.new(10000, 10000, 10000)
  905. bodygyro_3.P = 10000
  906. bodygyro_3.Parent = left_foot
  907. bodyposition_3.MaxForce = Vector3.new(0, 0, 0)
  908. bodyposition_3.D = 200
  909. bodyposition_3.Parent = left_foot
  910. boing.PlaybackSpeed = 2
  911. boing.Name = "Boing"
  912. boing.Volume = .3
  913. boing.SoundId = "rbxasset://sounds//short spring sound.wav"
  914. boing.Parent = left_foot
  915. right_forearm.Size = Vector3.new(0.8, 2, 0.8)
  916. right_forearm.BottomSurface = Enum.SurfaceType.Smooth
  917. right_forearm.Material = Enum.Material.SmoothPlastic
  918. right_forearm.Color = Color3.new(0.956863, 0.803922, 0.184314)
  919. right_forearm.BrickColor = BrickColor.new("Bright yellow")
  920. right_forearm.TopSurface = Enum.SurfaceType.Smooth
  921. right_forearm.Name = "Right Forearm"
  922. right_forearm.Parent = handsome_man
  923. right_forearm.CFrame = CFrame.new(17.91, 6.3, 5.51)
  924. elbow.Position = Vector3.new(0, 1, 0)
  925. elbow.Name = "Elbow"
  926. elbow.CFrame = CFrame.new(0, 1, 0)
  927. elbow.Parent = right_forearm
  928. wrist_3.Position = Vector3.new(0, -1, 0)
  929. wrist_3.Name = "Wrist"
  930. wrist_3.CFrame = CFrame.new(0, -1, 0)
  931. wrist_3.Parent = right_forearm
  932. ballsocketconstraint_5.Attachment0 = wrist_3
  933. ballsocketconstraint_5.Attachment1 = wrist_2
  934. ballsocketconstraint_5.Parent = right_forearm
  935. left_leg.Size = Vector3.new(1, 3, 1)
  936. left_leg.BottomSurface = Enum.SurfaceType.Smooth
  937. left_leg.Material = Enum.Material.SmoothPlastic
  938. left_leg.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  939. left_leg.BrickColor = BrickColor.new("Bright blue")
  940. left_leg.TopSurface = Enum.SurfaceType.Smooth
  941. left_leg.Name = "Left Leg"
  942. left_leg.Parent = handsome_man
  943. left_leg.CFrame = CFrame.new(16.01, 5.3, 5.51)
  944. hip_2.Position = Vector3.new(0, 1.5, 0)
  945. hip_2.Name = "Hip"
  946. hip_2.CFrame = CFrame.new(0, 1.5, 0)
  947. hip_2.Parent = left_leg
  948. knee_3.Position = Vector3.new(0, -1.5, 0)
  949. knee_3.Name = "Knee"
  950. knee_3.CFrame = CFrame.new(0, -1.5, 0)
  951. knee_3.Parent = left_leg
  952. ballsocketconstraint_6.Attachment0 = knee_3
  953. ballsocketconstraint_6.Attachment1 = knee_4
  954. ballsocketconstraint_6.Parent = left_leg
  955. left_arm.Size = Vector3.new(0.8, 2, 0.8)
  956. left_arm.BottomSurface = Enum.SurfaceType.Smooth
  957. left_arm.Material = Enum.Material.SmoothPlastic
  958. left_arm.Color = Color3.new(0.294118, 0.592157, 0.294118)
  959. left_arm.BrickColor = BrickColor.new("Bright green")
  960. left_arm.TopSurface = Enum.SurfaceType.Smooth
  961. left_arm.Name = "Left Arm"
  962. left_arm.Parent = handsome_man
  963. left_arm.CFrame = CFrame.new(15.11, 8.3, 5.51)
  964. shoulder_2.Position = Vector3.new(0, 1, 0)
  965. shoulder_2.Name = "Shoulder"
  966. shoulder_2.CFrame = CFrame.new(0, 1, 0)
  967. shoulder_2.Parent = left_arm
  968. elbow_2.Position = Vector3.new(0, -1, 0)
  969. elbow_2.Name = "Elbow"
  970. elbow_2.CFrame = CFrame.new(0, -1, 0)
  971. elbow_2.Parent = left_arm
  972. ballsocketconstraint_7.Attachment0 = elbow_2
  973. ballsocketconstraint_7.Attachment1 = elbow_3
  974. ballsocketconstraint_7.Parent = left_arm
  975. right_foreleg.Size = Vector3.new(1, 3, 1)
  976. right_foreleg.BottomSurface = Enum.SurfaceType.Smooth
  977. right_foreleg.Material = Enum.Material.SmoothPlastic
  978. right_foreleg.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  979. right_foreleg.BrickColor = BrickColor.new("Bright blue")
  980. right_foreleg.TopSurface = Enum.SurfaceType.Smooth
  981. right_foreleg.Name = "Right Foreleg"
  982. right_foreleg.Parent = handsome_man
  983. right_foreleg.CFrame = CFrame.new(17.01, 2.3, 5.51)
  984. ankle_2.Position = Vector3.new(0, -1.5, 0)
  985. ankle_2.Name = "Ankle"
  986. ankle_2.CFrame = CFrame.new(0, -1.5, 0)
  987. ankle_2.Parent = right_foreleg
  988. knee_2.Position = Vector3.new(0, 1.5, 0)
  989. knee_2.Name = "Knee"
  990. knee_2.CFrame = CFrame.new(0, 1.5, 0)
  991. knee_2.Parent = right_foreleg
  992. ballsocketconstraint_8.Attachment0 = ankle_2
  993. ballsocketconstraint_8.Attachment1 = ankle_3
  994. ballsocketconstraint_8.Parent = right_foreleg
  995. right_foot.Size = Vector3.new(1, 1, 2)
  996. right_foot.BrickColor = BrickColor.new("Black")
  997. right_foot.Name = "Right Foot"
  998. right_foot.Color = Color3.new(0.105882, 0.164706, 0.207843)
  999. right_foot.TopSurface = Enum.SurfaceType.Smooth
  1000. right_foot.BottomSurface = Enum.SurfaceType.Smooth
  1001. right_foot.Parent = handsome_man
  1002. right_foot.CFrame = CFrame.new(17.01, 0.5, 5.01)
  1003. mesh_10.MeshType = Enum.MeshType.FileMesh
  1004. mesh_10.MeshId = "http://www.roblox.com/asset/?id=108884514"
  1005. mesh_10.Parent = right_foot
  1006. ankle_3.Position = Vector3.new(0, 0.3, 0.5)
  1007. ankle_3.Name = "Ankle"
  1008. ankle_3.CFrame = CFrame.new(0, 0.3, 0.5)
  1009. ankle_3.Parent = right_foot
  1010. bodygyro_4.MaxTorque = Vector3.new(10000, 10000, 10000)
  1011. bodygyro_4.P = 10000
  1012. bodygyro_4.Parent = right_foot
  1013. bodyposition_4.MaxForce = Vector3.new(0, 0, 0)
  1014. bodyposition_4.D = 200
  1015. bodyposition_4.Parent = right_foot
  1016. boing_2.PlaybackSpeed = 2
  1017. boing_2.Name = "Boing"
  1018. boing_2.Volume = .3
  1019. boing_2.SoundId = "rbxasset://sounds//short spring sound.wav"
  1020. boing_2.Parent = right_foot
  1021. hips.Size = Vector3.new(2, 1, 1)
  1022. hips.Material = Enum.Material.SmoothPlastic
  1023. hips.Name = "Hips"
  1024. hips.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1025. hips.BrickColor = BrickColor.new("Bright blue")
  1026. hips.Transparency = 1
  1027. hips.Parent = handsome_man
  1028. hips.CFrame = CFrame.new(16.51, 6.8, 5.51)
  1029. right_hip.Position = Vector3.new(0.5, 0, 0)
  1030. right_hip.Name = "Right Hip"
  1031. right_hip.CFrame = CFrame.new(0.5, 0, 0)
  1032. right_hip.Parent = hips
  1033. left_hip.Position = Vector3.new(-0.5, 0, 0)
  1034. left_hip.Name = "Left Hip"
  1035. left_hip.CFrame = CFrame.new(-0.5, 0, 0)
  1036. left_hip.Parent = hips
  1037. ballsocketconstraint_9.Attachment0 = right_hip
  1038. ballsocketconstraint_9.Attachment1 = hip
  1039. ballsocketconstraint_9.Parent = hips
  1040. ballsocketconstraint_10.Attachment0 = left_hip
  1041. ballsocketconstraint_10.Attachment1 = hip_2
  1042. ballsocketconstraint_10.Parent = hips
  1043. weld_3.Part0 = hips
  1044. weld_3.C0 = CFrame.new(0, 1.75, 0)
  1045. weld_3.Part1 = torso
  1046. weld_3.Parent = hips
  1047. bodygyro_5.MaxTorque = Vector3.new(0, 0, 0)
  1048. bodygyro_5.P = 10000
  1049. bodygyro_5.Parent = hips
  1050. bodyposition_5.MaxForce = Vector3.new(0, 0, 0)
  1051. bodyposition_5.D = 500
  1052. bodyposition_5.Parent = hips
  1053. bodyvelocity.MaxForce = Vector3.new(0, 0, 0)
  1054. bodyvelocity.Velocity = Vector3.new(0, 0, 0)
  1055. bodyvelocity.P = 10000
  1056. bodyvelocity.Parent = hips
  1057. weld_4.Part1 = part_2
  1058. weld_4.C1 = CFrame.new(0, -0.25, 0)
  1059. weld_4.Part0 = hips
  1060. weld_4.Name = "Weld"
  1061. weld_4.Parent = hips
  1062. right_arm.Size = Vector3.new(0.8, 2, 0.8)
  1063. right_arm.BottomSurface = Enum.SurfaceType.Smooth
  1064. right_arm.Material = Enum.Material.SmoothPlastic
  1065. right_arm.Color = Color3.new(0.294118, 0.592157, 0.294118)
  1066. right_arm.BrickColor = BrickColor.new("Bright green")
  1067. right_arm.TopSurface = Enum.SurfaceType.Smooth
  1068. right_arm.Name = "Right Arm"
  1069. right_arm.Parent = handsome_man
  1070. right_arm.CFrame = CFrame.new(17.91, 8.3, 5.51)
  1071. shoulder.Position = Vector3.new(0, 1, 0)
  1072. shoulder.Name = "Shoulder"
  1073. shoulder.CFrame = CFrame.new(0, 1, 0)
  1074. shoulder.Parent = right_arm
  1075. elbow_4.Position = Vector3.new(0, -1, 0)
  1076. elbow_4.Name = "Elbow"
  1077. elbow_4.CFrame = CFrame.new(0, -1, 0)
  1078. elbow_4.Parent = right_arm
  1079. ballsocketconstraint_11.Attachment0 = elbow_4
  1080. ballsocketconstraint_11.Attachment1 = elbow
  1081. ballsocketconstraint_11.Parent = right_arm
  1082. head.Shape = Enum.PartType.Ball
  1083. head.Size = Vector3.new(2, 2, 2)
  1084. head.BrickColor = BrickColor.new("Bright yellow")
  1085. head.Material = Enum.Material.SmoothPlastic
  1086. head.BottomSurface = Enum.SurfaceType.Smooth
  1087. head.Name = "Head"
  1088. head.TopSurface = Enum.SurfaceType.Smooth
  1089. head.Color = Color3.new(0.956863, 0.803922, 0.184314)
  1090. head.Parent = handsome_man
  1091. head.CFrame = CFrame.new(16.489, 10.89, 5.548)
  1092. bodygyro_6.MaxTorque = Vector3.new(0, 0, 0)
  1093. bodygyro_6.P = 10000
  1094. bodygyro_6.Parent = head
  1095. namegui.Size = UDim2.new(10, 0, 0.8, 0)
  1096. namegui.Name = "NameGui"
  1097. namegui.ExtentsOffsetWorldSpace = Vector3.new(0, 2, 0)
  1098. namegui.Parent = head
  1099. namelabel.TextWrapped = true
  1100. namelabel.BackgroundColor3 = Color3.new(1, 1, 1)
  1101. namelabel.BackgroundTransparency = 1
  1102. namelabel.Name = "NameLabel"
  1103. namelabel.TextSize = 14
  1104. namelabel.TextScaled = true
  1105. namelabel.Font = Enum.Font.Cartoon
  1106. namelabel.Text = "PraiseBeeToTheBubble"
  1107. namelabel.TextStrokeTransparency = 0.75
  1108. namelabel.TextColor3 = Color3.new(1, 1, 1)
  1109. namelabel.Size = UDim2.new(1, 0, 1, 0)
  1110. namelabel.Parent = namegui
  1111. uuhhh.PlaybackSpeed = 0.7
  1112. uuhhh.SoundId = "rbxasset://sounds/uuhhh.mp3"
  1113. uuhhh.Name = "Uuhhh"
  1114. uuhhh.EmitterSize = 5
  1115. uuhhh.Volume = 8
  1116. uuhhh.MaxDistance = 150
  1117. uuhhh.Parent = head
  1118. face.Texture = "rbxassetid://83017053"
  1119. face.Name = "Face"
  1120. face.Parent = head
  1121. left_forearm.Size = Vector3.new(0.8, 2, 0.8)
  1122. left_forearm.BottomSurface = Enum.SurfaceType.Smooth
  1123. left_forearm.Material = Enum.Material.SmoothPlastic
  1124. left_forearm.Color = Color3.new(0.956863, 0.803922, 0.184314)
  1125. left_forearm.BrickColor = BrickColor.new("Bright yellow")
  1126. left_forearm.TopSurface = Enum.SurfaceType.Smooth
  1127. left_forearm.Name = "Left Forearm"
  1128. left_forearm.Parent = handsome_man
  1129. left_forearm.CFrame = CFrame.new(15.11, 6.3, 5.51)
  1130. wrist_4.Position = Vector3.new(0, -1, 0)
  1131. wrist_4.Name = "Wrist"
  1132. wrist_4.CFrame = CFrame.new(0, -1, 0)
  1133. wrist_4.Parent = left_forearm
  1134. elbow_3.Position = Vector3.new(0, 1, 0)
  1135. elbow_3.Name = "Elbow"
  1136. elbow_3.CFrame = CFrame.new(0, 1, 0)
  1137. elbow_3.Parent = left_forearm
  1138. ballsocketconstraint_12.Attachment0 = wrist_4
  1139. ballsocketconstraint_12.Attachment1 = wrist
  1140. ballsocketconstraint_12.Parent = left_forearm
  1141. left_foreleg.Size = Vector3.new(1, 3, 1)
  1142. left_foreleg.BottomSurface = Enum.SurfaceType.Smooth
  1143. left_foreleg.Material = Enum.Material.SmoothPlastic
  1144. left_foreleg.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1145. left_foreleg.BrickColor = BrickColor.new("Bright blue")
  1146. left_foreleg.TopSurface = Enum.SurfaceType.Smooth
  1147. left_foreleg.Name = "Left Foreleg"
  1148. left_foreleg.Parent = handsome_man
  1149. left_foreleg.CFrame = CFrame.new(16.01, 2.3, 5.51)
  1150. ankle_4.Position = Vector3.new(0, -1.5, 0)
  1151. ankle_4.Name = "Ankle"
  1152. ankle_4.CFrame = CFrame.new(0, -1.5, 0)
  1153. ankle_4.Parent = left_foreleg
  1154. knee_4.Position = Vector3.new(0, 1.5, 0)
  1155. knee_4.Name = "Knee"
  1156. knee_4.CFrame = CFrame.new(0, 1.5, 0)
  1157. knee_4.Parent = left_foreleg
  1158. ballsocketconstraint_13.Attachment0 = ankle_4
  1159. ballsocketconstraint_13.Attachment1 = ankle
  1160. ballsocketconstraint_13.Parent = left_foreleg
  1161. health.Value = 100
  1162. health.Name = "Health"
  1163. health.Parent = handsome_man
  1164. max.Value = 100
  1165. max.Name = "Max"
  1166. max.Parent = health
  1167. right_elbow.CanCollide = false
  1168. right_elbow.Shape = Enum.PartType.Ball
  1169. right_elbow.Size = Vector3.new(0.8, 0.8, 0.8)
  1170. right_elbow.Material = Enum.Material.SmoothPlastic
  1171. right_elbow.BrickColor = BrickColor.new("Bright yellow")
  1172. right_elbow.BottomSurface = Enum.SurfaceType.Smooth
  1173. right_elbow.Name = "Right Elbow"
  1174. right_elbow.TopSurface = Enum.SurfaceType.Smooth
  1175. right_elbow.Color = Color3.new(0.956863, 0.803922, 0.184314)
  1176. right_elbow.Parent = handsome_man
  1177. right_elbow.CFrame = CFrame.new(17.91, 7.3, 5.51)
  1178. elbow_5.Name = "Elbow"
  1179. elbow_5.Parent = right_elbow
  1180. ballsocketconstraint_14.Attachment0 = elbow
  1181. ballsocketconstraint_14.Attachment1 = elbow_5
  1182. ballsocketconstraint_14.Parent = right_elbow
  1183. left_elbow.CanCollide = false
  1184. left_elbow.Shape = Enum.PartType.Ball
  1185. left_elbow.Size = Vector3.new(0.8, 0.8, 0.8)
  1186. left_elbow.Material = Enum.Material.SmoothPlastic
  1187. left_elbow.BrickColor = BrickColor.new("Bright yellow")
  1188. left_elbow.BottomSurface = Enum.SurfaceType.Smooth
  1189. left_elbow.Name = "Left Elbow"
  1190. left_elbow.TopSurface = Enum.SurfaceType.Smooth
  1191. left_elbow.Color = Color3.new(0.956863, 0.803922, 0.184314)
  1192. left_elbow.Parent = handsome_man
  1193. left_elbow.CFrame = CFrame.new(15.11, 7.3, 5.51)
  1194. elbow_6.Name = "Elbow"
  1195. elbow_6.Parent = left_elbow
  1196. ballsocketconstraint_15.Attachment0 = elbow_3
  1197. ballsocketconstraint_15.Attachment1 = elbow_6
  1198. ballsocketconstraint_15.Parent = left_elbow
  1199. left_knee.CanCollide = false
  1200. left_knee.Shape = Enum.PartType.Ball
  1201. left_knee.Size = Vector3.new(1, 1, 1)
  1202. left_knee.Material = Enum.Material.SmoothPlastic
  1203. left_knee.BrickColor = BrickColor.new("Bright blue")
  1204. left_knee.BottomSurface = Enum.SurfaceType.Smooth
  1205. left_knee.Name = "Left Knee"
  1206. left_knee.TopSurface = Enum.SurfaceType.Smooth
  1207. left_knee.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1208. left_knee.Parent = handsome_man
  1209. left_knee.CFrame = CFrame.new(16.01, 3.8, 5.51)
  1210. knee_5.Name = "Knee"
  1211. knee_5.Parent = left_knee
  1212. ballsocketconstraint_16.Attachment0 = knee_5
  1213. ballsocketconstraint_16.Attachment1 = knee_4
  1214. ballsocketconstraint_16.Parent = left_knee
  1215. right_knee.CanCollide = false
  1216. right_knee.Shape = Enum.PartType.Ball
  1217. right_knee.Size = Vector3.new(1, 1, 1)
  1218. right_knee.Material = Enum.Material.SmoothPlastic
  1219. right_knee.BrickColor = BrickColor.new("Bright blue")
  1220. right_knee.BottomSurface = Enum.SurfaceType.Smooth
  1221. right_knee.Name = "Right Knee"
  1222. right_knee.TopSurface = Enum.SurfaceType.Smooth
  1223. right_knee.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1224. right_knee.Parent = handsome_man
  1225. right_knee.CFrame = CFrame.new(17.01, 3.8, 5.51)
  1226. knee_6.Name = "Knee"
  1227. knee_6.Parent = right_knee
  1228. ballsocketconstraint_17.Attachment0 = knee_6
  1229. ballsocketconstraint_17.Attachment1 = knee_2
  1230. ballsocketconstraint_17.Parent = right_knee
  1231. ragdoll.Name = "Ragdoll"
  1232. ragdoll.Parent = handsome_man
  1233. hat.Name = "Hat"
  1234. hat.Parent = handsome_man
  1235. handle.CanCollide = false
  1236. handle.Size = Vector3.new(1, 0.4, 1)
  1237. handle.BottomSurface = Enum.SurfaceType.Smooth
  1238. handle.TopSurface = Enum.SurfaceType.Smooth
  1239. handle.Name = "Handle"
  1240. handle.Parent = hat
  1241. handle.CFrame = CFrame.new(16.489, 11.69, 5.248)
  1242. mesh_14.MeshType = Enum.MeshType.FileMesh
  1243. mesh_14.Scale = Vector3.new(1.6, 1.6, 1.6)
  1244. mesh_14.MeshId = "http://www.roblox.com/asset/?id=1028604"
  1245. mesh_14.TextureId = "http://www.roblox.com/asset/?id=1028605"
  1246. mesh_14.Parent = handle
  1247. weld_5.Part1 = head
  1248. weld_5.C1 = CFrame.new(0, 0.8, -0.3)
  1249. weld_5.Part0 = handle
  1250. weld_5.Name = "Weld"
  1251. weld_5.Parent = handle
  1252. union1.Name = "union1"
  1253. union1.Parent = handsome_man
  1254. part_3.Shape = Enum.PartType.Cylinder
  1255. part_3.Size = Vector3.new(2, 1, 1)
  1256. part_3.Material = Enum.Material.SmoothPlastic
  1257. part_3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1258. part_3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1259. part_3.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1260. part_3.BrickColor = BrickColor.new("Bright blue")
  1261. part_3.Parent = union1
  1262. part_3.CFrame = CFrame.new(16.51, 6.8, 5.51)
  1263. weld_6.Part1 = part_2
  1264. weld_6.C1 = CFrame.new(0, -0.25, 0)
  1265. weld_6.Part0 = part_3
  1266. weld_6.Name = "Weld"
  1267. weld_6.Parent = part_3
  1268. weld_7.Part1 = part_2
  1269. weld_7.C1 = CFrame.new(0, -0.25, 0)
  1270. weld_7.Part0 = part_3
  1271. weld_7.Name = "Weld"
  1272. weld_7.Parent = part_3
  1273. weld_8.Part1 = part_2
  1274. weld_8.C1 = CFrame.new(0, -0.25, 0)
  1275. weld_8.Part0 = part_3
  1276. weld_8.Name = "Weld"
  1277. weld_8.Parent = part_3
  1278. part_2.Size = Vector3.new(2, 0.5, 1)
  1279. part_2.BrickColor = BrickColor.new("Bright blue")
  1280. part_2.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1281. part_2.Material = Enum.Material.SmoothPlastic
  1282. part_2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1283. part_2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1284. part_2.Parent = union1
  1285. part_2.CFrame = CFrame.new(16.51, 7.05, 5.51)
  1286. union2.Name = "union2"
  1287. union2.Parent = handsome_man
  1288. part.Shape = Enum.PartType.Cylinder
  1289. part.Size = Vector3.new(1, 1, 1)
  1290. part.Orientation = Vector3.new(0, 90, 0)
  1291. part.Material = Enum.Material.SmoothPlastic
  1292. part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1293. part.BrickColor = BrickColor.new("Bright green")
  1294. part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1295. part.Color = Color3.new(0.294118, 0.592157, 0.294118)
  1296. part.Parent = union2
  1297. part.CFrame = CFrame.new(16.01, 9.3, 5.51) * CFrame.Angles(0, 1.571, 0)
  1298. part_4.Shape = Enum.PartType.Cylinder
  1299. part_4.Size = Vector3.new(1, 1, 1)
  1300. part_4.Orientation = Vector3.new(0, 90, 0)
  1301. part_4.Material = Enum.Material.SmoothPlastic
  1302. part_4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1303. part_4.BrickColor = BrickColor.new("Bright green")
  1304. part_4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1305. part_4.Color = Color3.new(0.294118, 0.592157, 0.294118)
  1306. part_4.Parent = union2
  1307. part_4.CFrame = CFrame.new(17.01, 9.3, 5.51) * CFrame.Angles(0, 1.571, 0)
  1308. weld_9.Part1 = part
  1309. weld_9.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, -1.571, 0)
  1310. weld_9.C1 = CFrame.new(0, 0, 1) * CFrame.Angles(0, -1.571, 0)
  1311. weld_9.Part0 = part_4
  1312. weld_9.Name = "Weld"
  1313. weld_9.Parent = part_4
  1314. part_5.Size = Vector3.new(2, 2, 1)
  1315. part_5.BrickColor = BrickColor.new("Bright green")
  1316. part_5.Color = Color3.new(0.294118, 0.592157, 0.294118)
  1317. part_5.Material = Enum.Material.SmoothPlastic
  1318. part_5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1319. part_5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1320. part_5.Parent = union2
  1321. part_5.CFrame = CFrame.new(16.51, 8.3, 5.51)
  1322. weld_10.Part1 = part
  1323. weld_10.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(0, -1.571, 0)
  1324. weld_10.Part0 = part_5
  1325. weld_10.Name = "Weld"
  1326. weld_10.Parent = part_5
  1327. part_6.Size = Vector3.new(1, 0.55, 1)
  1328. part_6.BrickColor = BrickColor.new("Bright green")
  1329. part_6.Color = Color3.new(0.294118, 0.592157, 0.294118)
  1330. part_6.Material = Enum.Material.SmoothPlastic
  1331. part_6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1332. part_6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1333. part_6.Parent = union2
  1334. part_6.CFrame = CFrame.new(16.51, 9.525, 5.51)
  1335. weld_11.Part1 = part
  1336. weld_11.C1 = CFrame.new(0, 0.225, 0.5) * CFrame.Angles(0, -1.571, 0)
  1337. weld_11.Part0 = part_6
  1338. weld_11.Name = "Weld"
  1339. weld_11.Parent = part_6
  1340. remotes.Parent = handsome_man
  1341. handsome_man.Parent = workspace
  1342. handsome_man.Name = "char".. string.reverse(owner.Name)
  1343. namelabel.Text = owner.Name
  1344. owner.Character = handsome_man
  1345. handsome_man:MoveTo(Vector3.new(0,50,0))
  1346. for i,v in pairs(script:GetChildren()) do
  1347. print(i,v)
  1348. end
  1349. local jeb = NLS(jebc,handsome_man)
  1350. local Remotes = Instance.new("ObjectValue",jeb)
  1351. Remotes.Name = "Remotes"
  1352. Remotes.Value = remotes
  1353.  
  1354.  
  1355.  
  1356.  
  1357. local jeb1 = NLS(jeb1c,handsome_man)
  1358. local Remotes = Instance.new("ObjectValue",jeb1)
  1359. Remotes.Name = "Remotes"
  1360. Remotes.Value = remotes
  1361.  
  1362.  
  1363. --owner.Character = handsome_man
  1364. --[[local client = scripts.client:Clone()
  1365. client.Remotes.Value = remotes
  1366. client.Parent = handsome_man
  1367. client.Disabled = false
  1368. wait(.5)
  1369. handsome_man.Parent = workspace
  1370. handsome_man.Name = "char".. string.reverse(owner.Name)
  1371. namelabel.Text = owner.Name
  1372. owner.Character = handsome_man
  1373. added:FireClient(owner,handsome_man)
  1374. local client2 = scripts.charscripts:Clone()
  1375. client2.Remotes.Value = remotes
  1376. client2.Parent = handsome_man
  1377. client2.Disabled = false
  1378. wait(1)
  1379. client.Disabled = true
  1380. wait(.3)
  1381. client.Disabled = false
  1382. ]]
  1383.  
  1384. for i = 1,4 do
  1385. namelabel.Text = owner.Name
  1386. wait()
  1387. end
  1388.  
  1389.  
  1390. right_hand.ChildRemoved:Connect(function(k)
  1391. if k:IsA("Sound") then
  1392. local grab = Instance.new("Sound",right_hand)
  1393. grab.Volume = 8
  1394. grab.Name = "Grab"
  1395. grab.SoundId = "rbxassetid://160432334"
  1396. end
  1397. end)
  1398.  
  1399. left_hand.ChildRemoved:Connect(function(k)
  1400. if k:IsA("Sound") then
  1401. local grab = Instance.new("Sound",left_arm)
  1402. grab.Volume = 8
  1403. grab.Name = "Grab"
  1404. grab.SoundId = "rbxassetid://160432334"
  1405. end
  1406. end)
  1407.  
  1408.  
  1409. right_foot.ChildRemoved:Connect(function(k)
  1410. if k:IsA("Sound") then
  1411. local boing = Instance.new("Sound",right_foot)
  1412. boing.PlaybackSpeed = 2
  1413. boing.Name = "Boing"
  1414. boing.Volume = .3
  1415. boing.SoundId = "rbxasset://sounds//short spring sound.wav"
  1416. end
  1417. end)
  1418.  
  1419. left_foot.ChildRemoved:Connect(function(k)
  1420. if k:IsA("Sound") then
  1421. local boing = Instance.new("Sound",left_foot)
  1422. boing.PlaybackSpeed = 2
  1423. boing.Name = "Boing"
  1424. boing.Volume = .3
  1425. boing.SoundId = "rbxasset://sounds//short spring sound.wav"
  1426. end
  1427. end)
  1428.  
  1429.  
  1430. for i,v in pairs(union1:GetChildren()) do
  1431. v.CanCollide = false
  1432. v.Massless = true
  1433. v.Locked = true
  1434. end
  1435.  
  1436. for i,v in pairs(union2:GetChildren()) do
  1437. v.CanCollide = false
  1438. v.Massless = true
  1439. v.Locked = true
  1440. end
  1441.  
  1442. for i,v in pairs(handsome_man:GetChildren()) do
  1443. if v:IsA("BasePart") then
  1444. v.Locked = true
  1445. end
  1446. end
  1447.  
  1448. handsome_man.ChildRemoved:Connect(function(v)
  1449. if v.Name == "Remotes" then
  1450. remotes = Instance.new("Folder",handsome_man)
  1451. remotes.Name = "Remotes"
  1452.  
  1453. grab = Instance.new("RemoteEvent",remotes)
  1454. reset = Instance.new("RemoteEvent",remotes)
  1455. drop = Instance.new("RemoteEvent",remotes)
  1456. unanchor = Instance.new("RemoteEvent",remotes)
  1457. drop.Name = "Drop"
  1458. grab.Name = "Grab"
  1459. reset.Name = "Reset"
  1460. unanchor.Name = "Unanchor"
  1461.  
  1462. unanchor.OnServerEvent:connect(function(plr,part)
  1463. part.Anchored = not part.Anchored
  1464. end)
  1465.  
  1466. reset.OnServerEvent:Connect(function(guy)
  1467. guy:LoadCharacter(true)
  1468. end)
  1469.  
  1470. drop.OnServerEvent:Connect(function(plr,arm)
  1471. local character = plr.Character
  1472. local rightHand = character["Right Hand"]
  1473. local leftHand = character["Left Hand"]
  1474. if arm == "Left" then
  1475. if leftHand:FindFirstChild("ServerGrip") then
  1476. leftHand:FindFirstChild("ServerGrip"):Destroy()
  1477. end
  1478. end
  1479. if arm == "Right" then
  1480. if rightHand:FindFirstChild("ServerGrip") then
  1481. rightHand:FindFirstChild("ServerGrip"):Destroy()
  1482. end
  1483. end
  1484.  
  1485.  
  1486. end)
  1487.  
  1488.  
  1489.  
  1490.  
  1491. grab.OnServerEvent:Connect(function(plr,hit,offset,arm)
  1492. local character = plr.Character
  1493. local rightHand = character["Right Hand"]
  1494. local leftHand = character["Left Hand"]
  1495. if arm == "Left" then
  1496. local motor = Instance.new("Motor6D")
  1497. motor.Name = "ServerGrip"
  1498. motor.Part0 = hit
  1499. motor.Part1 = leftHand
  1500. motor.C0 = offset
  1501. motor.Parent = leftHand
  1502. end
  1503. if arm == "Right" then
  1504. local motor = Instance.new("Motor6D")
  1505. motor.Name = "ServerGrip"
  1506. motor.Part0 = hit
  1507. motor.Part1 = rightHand
  1508. motor.C0 = offset
  1509. motor.Parent = rightHand
  1510. end
  1511. end)
  1512. local debounce = true
  1513.  
  1514. remotes.ChildRemoved:Connect(function(k)
  1515. if debounce == false then
  1516. if k:IsA("RemoteEvent") then
  1517. debounce = true
  1518. for i,v in pairs(handsome_man:GetChildren()) do
  1519. if v.Name == "Remotes" then
  1520. v:Destroy()
  1521. end
  1522. end
  1523. remotes:Destroy()
  1524.  
  1525. remotes = Instance.new("Folder",handsome_man)
  1526. remotes.Name = "Remotes"
  1527.  
  1528. grab = Instance.new("RemoteEvent",remotes)
  1529. reset = Instance.new("RemoteEvent",remotes)
  1530. drop = Instance.new("RemoteEvent",remotes)
  1531. unanchor = Instance.new("RemoteEvent",remotes)
  1532. unanchor.Name = "Unanchor"
  1533. drop.Name = "Drop"
  1534. grab.Name = "Grab"
  1535. reset.Name = "Reset"
  1536.  
  1537. unanchor.OnServerEvent:connect(function(plr,part)
  1538. part.Anchored = not part.Anchored
  1539. end)
  1540.  
  1541. reset.OnServerEvent:Connect(function(guy)
  1542. guy:LoadCharacter(true)
  1543. end)
  1544.  
  1545. drop.OnServerEvent:Connect(function(plr,arm)
  1546. local character = plr.Character
  1547. local rightHand = character["Right Hand"]
  1548. local leftHand = character["Left Hand"]
  1549. if arm == "Left" then
  1550. if leftHand:FindFirstChild("ServerGrip") then
  1551. leftHand:FindFirstChild("ServerGrip"):Destroy()
  1552. end
  1553. end
  1554. if arm == "Right" then
  1555. if rightHand:FindFirstChild("ServerGrip") then
  1556. rightHand:FindFirstChild("ServerGrip"):Destroy()
  1557. end
  1558. end
  1559.  
  1560.  
  1561. end)
  1562.  
  1563.  
  1564.  
  1565.  
  1566. grab.OnServerEvent:Connect(function(plr,hit,offset,arm)
  1567. local character = plr.Character
  1568. local rightHand = character["Right Hand"]
  1569. local leftHand = character["Left Hand"]
  1570. if arm == "Left" then
  1571. local motor = Instance.new("Motor6D")
  1572. motor.Name = "ServerGrip"
  1573. motor.Part0 = hit
  1574. motor.Part1 = leftHand
  1575. motor.C0 = offset
  1576. motor.Parent = leftHand
  1577. end
  1578. if arm == "Right" then
  1579. local motor = Instance.new("Motor6D")
  1580. motor.Name = "ServerGrip"
  1581. motor.Part0 = hit
  1582. motor.Part1 = rightHand
  1583. motor.C0 = offset
  1584. motor.Parent = rightHand
  1585. end
  1586. end)
  1587.  
  1588. end
  1589. wait(.2)
  1590. debounce = false
  1591. end
  1592. end)
  1593.  
  1594.  
  1595.  
  1596. end
  1597. end)
  1598.  
  1599. while wait(.2) do
  1600. if remotes and #remotes:GetChildren() ~= 4 then
  1601. for i,v in pairs(remotes:GetChildren()) do
  1602. v:Destroy()
  1603. end
  1604. grab = Instance.new("RemoteEvent",remotes)
  1605. reset = Instance.new("RemoteEvent",remotes)
  1606. drop = Instance.new("RemoteEvent",remotes)
  1607. unanchor = Instance.new("RemoteEvent",remotes)
  1608. unanchor.Name = "Unanchor"
  1609. drop.Name = "Drop"
  1610. grab.Name = "Grab"
  1611. reset.Name = "Reset"
  1612.  
  1613. unanchor.OnServerEvent:connect(function(plr,part)
  1614. part.Anchored = not part.Anchored
  1615. end)
  1616.  
  1617. reset.OnServerEvent:Connect(function(guy)
  1618. guy:LoadCharacter(true)
  1619. end)
  1620.  
  1621. drop.OnServerEvent:Connect(function(plr,arm)
  1622. local character = plr.Character
  1623. local rightHand = character["Right Hand"]
  1624. local leftHand = character["Left Hand"]
  1625. if arm == "Left" then
  1626. if leftHand:FindFirstChild("ServerGrip") then
  1627. leftHand:FindFirstChild("ServerGrip"):Destroy()
  1628. end
  1629. end
  1630. if arm == "Right" then
  1631. if rightHand:FindFirstChild("ServerGrip") then
  1632. rightHand:FindFirstChild("ServerGrip"):Destroy()
  1633. end
  1634. end
  1635.  
  1636.  
  1637. end)
  1638.  
  1639.  
  1640.  
  1641.  
  1642. grab.OnServerEvent:Connect(function(plr,hit,offset,arm)
  1643. local character = plr.Character
  1644. local rightHand = character["Right Hand"]
  1645. local leftHand = character["Left Hand"]
  1646. if arm == "Left" then
  1647. local motor = Instance.new("Motor6D")
  1648. motor.Name = "ServerGrip"
  1649. motor.Part0 = hit
  1650. motor.Part1 = leftHand
  1651. motor.C0 = offset
  1652. motor.Parent = leftHand
  1653. end
  1654. if arm == "Right" then
  1655. local motor = Instance.new("Motor6D")
  1656. motor.Name = "ServerGrip"
  1657. motor.Part0 = hit
  1658. motor.Part1 = rightHand
  1659. motor.C0 = offset
  1660. motor.Parent = rightHand
  1661. end
  1662. end)
  1663. end
  1664. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement