Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.06 KB | None | 0 0
  1. local toolamount = 41 -- How much covered the raindrop is
  2. local dropsize = 0.5 -- How big the raindrop is
  3.  
  4. -- Don't edit script unless you know what you're doing. If you wanna add this into a script, please give credits and message me on discord that you added it in a script at Cyclically#4905
  5.  
  6. local LocalPlayer = game:GetService("Players").LocalPlayer
  7. local runservice = game:GetService("RunService")
  8. local characters = {}
  9. LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
  10. local currentamount = #LocalPlayer.Backpack:GetChildren()
  11. LocalPlayer.Character.Archivable = true
  12. local tempchar = LocalPlayer.Character:Clone()
  13. tempchar.Parent = workspace
  14. local savepos = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
  15. local renderstepped = runservice.RenderStepped:Connect(function()
  16. workspace.CurrentCamera.CameraSubject = tempchar:FindFirstChild("Humanoid")
  17. for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
  18. if tool:IsA("Tool") then
  19. tool.Parent = LocalPlayer
  20. end
  21. end
  22. LocalPlayer.Character:ClearAllChildren()
  23. local char = Instance.new("Model", workspace)
  24. table.insert(characters, char)
  25. Instance.new("Humanoid", char)
  26. LocalPlayer.Character = char
  27. repeat runservice.RenderStepped:Wait() until LocalPlayer.Character ~= nil
  28. end)
  29. repeat runservice.RenderStepped:Wait() until #LocalPlayer:GetChildren() - 4 - currentamount >= toolamount
  30. renderstepped:Disconnect()
  31. repeat runservice.RenderStepped:Wait() until LocalPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil
  32. for _, char in pairs(characters) do
  33. char:Destroy()
  34. end
  35. for index, tool in pairs(LocalPlayer:GetChildren()) do
  36. if tool:IsA("Tool") then
  37. tool.Parent = LocalPlayer.Backpack
  38. tool.Handle.Massless = true
  39. tool.Grip = CFrame.new(Vector3.new(0, math.sin(index * 0.5), index * dropsize)) * CFrame.Angles(math.rad(-index * 0.5), math.rad(index * 50), 0)
  40. tool.Parent = LocalPlayer.Character
  41. if tool.Handle:FindFirstChild("Mesh") ~= nil then
  42. tool.Handle.Mesh:Destroy()
  43. end
  44. end
  45. end
  46. LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = savepos
  47. tempchar:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement