Advertisement
ModuleForRBLX

Untitled

Feb 24th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. --[[
  2. Cyclically's FE Rain Tool Bricks V1.1
  3. After executing the script, please wait until you are able to move your character again.
  4. https://v3rmillion.net/member.php?action=profile&uid=785986
  5. ]]
  6.  
  7. local toolamount = 10 -- Amount of tools you want to rain
  8.  
  9. -- 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
  10.  
  11. local LocalPlayer = game:GetService("Players").LocalPlayer
  12. local runservice = game:GetService("RunService")
  13. local characters = {}
  14. LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
  15. local currentamount = #LocalPlayer.Backpack:GetChildren()
  16. LocalPlayer.Character.Archivable = true
  17. local tempchar = LocalPlayer.Character:Clone()
  18. tempchar.Parent = workspace
  19. local savepos = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
  20. local renderstepped = runservice.RenderStepped:Connect(function()
  21. workspace.CurrentCamera.CameraSubject = tempchar:FindFirstChild("Humanoid")
  22. for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
  23. if tool:IsA("Tool") then
  24. tool.Parent = LocalPlayer
  25. end
  26. end
  27. LocalPlayer.Character:ClearAllChildren()
  28. local char = Instance.new("Model", workspace)
  29. table.insert(characters, char)
  30. Instance.new("Humanoid", char)
  31. LocalPlayer.Character = char
  32. repeat runservice.RenderStepped:Wait() until LocalPlayer.Character ~= nil
  33. end)
  34. repeat runservice.RenderStepped:Wait() until #LocalPlayer:GetChildren() - 4 - currentamount >= toolamount
  35. renderstepped:Disconnect()
  36. repeat runservice.RenderStepped:Wait() until LocalPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil
  37. for _, char in pairs(characters) do
  38. char:Destroy()
  39. end
  40. tempchar:Destroy()
  41. for index, tool in pairs(LocalPlayer:GetChildren()) do
  42. if tool:IsA("Tool") then
  43. runservice.RenderStepped:Wait()
  44. LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(savepos * Vector3.new(math.random(-50, 50), 100 + (index * 20), math.random(-50, 50)))
  45. tool.Parent = LocalPlayer.Backpack
  46. tool.Parent = LocalPlayer.Character
  47. if tool.Handle:FindFirstChild("Mesh") ~= nil then
  48. tool.Handle:FindFirstChild("Mesh"):Destroy()
  49. end
  50. tool.Parent = workspace.Terrain
  51. end
  52. end
  53. LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = savepos
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement