Advertisement
ProScripter29

SkyWars Collect All Coins

Mar 9th, 2024 (edited)
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2.  
  3. if Player and Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
  4.     LastPosition = Player.Character.HumanoidRootPart.CFrame
  5.     for i, Coin in pairs(workspace:GetChildren()) do
  6.         if Coin.Name == "IronCoin" or Coin.Name == "GoldCoin" or Coin.Name == "BronzeCoin" or Coin.Name == "Shard"  then
  7.             Player.Character.HumanoidRootPart.CFrame = Coin.Hitbox.CFrame
  8.             task.wait()
  9.             Player.Character.HumanoidRootPart.CFrame = LastPosition
  10.             task.wait()
  11. --firetouchinterest(Player.Character.HumanoidRootPart, Coin.Hitbox, 0)
  12. --firetouchinterest(Player.Character.HumanoidRootPart, Coin.Hitbox, 1)
  13. task.wait()
  14.         end
  15.     end
  16.     Player.Character.HumanoidRootPart.CFrame = LastPosition
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement