Advertisement
ttyyuu12345

clown function

Jun 5th, 2017
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. function Kidnap(Plr)
  2. coroutine.resume(coroutine.create(function()
  3. local van = GetResource("Clowns"):Clone()
  4. local char = Plr.Character
  5. local torso = Plr.Character:FindFirstChild("HumanoidRootPart")
  6. local humanoid = Plr.Character:FindFirstChild("Humanoid")
  7. local p = Plr
  8.  
  9. local function check()
  10. if not van or not van.Parent or not p or p.Parent ~= Services.Players or not torso or not humanoid or not torso.Parent or not humanoid.Parent or not char or not char.Parent then
  11. return false
  12. else
  13. return true
  14. end
  15. end
  16.  
  17. local driver = van.Driver
  18. local grabber = van.Clown
  19. local primary = van.Primary
  20. local door = van.Door
  21. local tPos = torso.CFrame
  22.  
  23. local sound = Instance.new("Sound",primary)
  24. sound.SoundId = "rbxassetid://258529216"
  25. sound.Looped = true
  26. sound:Play()
  27.  
  28. local chuckle = Instance.new("Sound",primary)
  29. chuckle.SoundId = "rbxassetid://164516281"
  30. chuckle.Looped = true
  31. chuckle.Volume = 0.25
  32. chuckle:Play()
  33.  
  34. van.Name = "ADONIS_VAN"
  35. van.Parent = workspace
  36. humanoid.Name = "NoResetForYou"
  37. humanoid.WalkSpeed = 0
  38. sound.Pitch = 1.3
  39.  
  40. local sdsd = Instance.new("Sound", GetPlayerGui(Plr))
  41. sdsd.SoundId = 'rbxassetid://421358540'
  42. sdsd.Volume = 2
  43. sdsd:Play()
  44.  
  45. for i = 1,200 do
  46. if not check() then
  47. break
  48. else
  49. van:SetPrimaryPartCFrame(tPos*(CFrame.new(-200+i,-1,-7)*CFrame.Angles(0,math.rad(270),0)))
  50. wait(0.001*(i/5))
  51. end
  52. end
  53.  
  54. sound.Pitch = 0.9
  55.  
  56. wait(0.5)
  57. if check() then
  58. door.Transparency = 1
  59. end
  60. wait(0.5)
  61.  
  62. if check() then
  63. torso.CFrame = primary.CFrame*(CFrame.new(0,2.5,0)*CFrame.Angles(0,math.rad(90),0))
  64. end
  65.  
  66. wait(0.5)
  67. if check() then
  68. door.Transparency = 0
  69. end
  70. wait(0.5)
  71.  
  72. sound.Pitch = 1.3
  73.  
  74. p.CameraMaxZoomDistance = 0.5
  75.  
  76. for i = 1,400 do
  77. if not check() then
  78. break
  79. else
  80. van:SetPrimaryPartCFrame(tPos*(CFrame.new(0+i,-1,-7)*CFrame.Angles(0,math.rad(270),0)))
  81. torso.CFrame = primary.CFrame*(CFrame.new(0,2.5,0)*CFrame.Angles(0,math.rad(90),0))
  82. wait(0.1/(i*5))
  83.  
  84. if i == 270 then
  85. --server.Remote.FadeAudio(p,421358540,nil,nil,0.5)
  86. end
  87. end
  88. end
  89.  
  90. local gui = Instance.new("ScreenGui",Services.ReplicatedStorage)
  91. local bg = Instance.new("Frame", gui)
  92. bg.BackgroundTransparency = 0
  93. bg.BackgroundColor3 = Color3.new(0,0,0)
  94. bg.Size = UDim2.new(2,0,2,0)
  95. bg.Position = UDim2.new(-0.5,0,-0.5,0)
  96. gui.Parent = GetPlayerGui(Plr)
  97. wait(2)
  98. --if p and p.Parent == game.Players then service.TeleportService:Teleport(527443962,p,nil,bg) end
  99. wait(0.5)
  100. p.CameraMaxZoomDistance = 400
  101. p.Character:BreakJoints()
  102. sdsd:Stop()
  103. pcall(function() van:Destroy() end)
  104. pcall(function() gui:Destroy() end)
  105. end))
  106. end
  107. _G.Kid = Kidnap
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement