Advertisement
abusabIe

spiral v3

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