Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- if Player and Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
- LastPosition = Player.Character.HumanoidRootPart.CFrame
- for i, Coin in pairs(workspace:GetChildren()) do
- if Coin.Name == "IronCoin" or Coin.Name == "GoldCoin" or Coin.Name == "BronzeCoin" or Coin.Name == "Shard" then
- Player.Character.HumanoidRootPart.CFrame = Coin.Hitbox.CFrame
- task.wait()
- Player.Character.HumanoidRootPart.CFrame = LastPosition
- task.wait()
- --firetouchinterest(Player.Character.HumanoidRootPart, Coin.Hitbox, 0)
- --firetouchinterest(Player.Character.HumanoidRootPart, Coin.Hitbox, 1)
- task.wait()
- end
- end
- Player.Character.HumanoidRootPart.CFrame = LastPosition
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement