XxTw1st3d_D3m0nxX

Scroll Down To See the Written words where the fram.new part is (Sword simulator 2 Script)

Mar 19th, 2021
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local mouse = player:GetMouse()
  3. local backpack = player.Backpack
  4. local char = player.Character
  5. local hrp = char.HumanoidRootPart
  6. local hum = char.Humanoid
  7. local tween = game:GetService("TweenService")
  8.  
  9. function gatherswords()
  10. local swords = {}
  11. for i, v in pairs(backpack:GetChildren())do
  12. if(v:IsA"Tool")then
  13. table.insert(swords,v)
  14. end
  15. end
  16. for i, v in pairs(char:GetChildren())do
  17. if(v:IsA"Tool")then
  18. table.insert(swords,v)
  19. end
  20. end
  21. return swords
  22. end
  23.  
  24. local swords = gatherswords()
  25.  
  26. for i, sword in pairs(swords) do
  27. if(i~=#swords)then
  28. sword.Parent = backpack
  29. sword.Handle.Massless = true
  30. --Change the Frame.New Things that says 0 to any number to not have a chubby sword sword.Grip = (sword.Grip*CFrame.new(0,0,-0.0)) * CFrame.Angles(0, (6.28/(#swords-1))*i, 0)
  31. end
  32. sword.Parent = char
  33. end
Advertisement
Add Comment
Please, Sign In to add comment