Tanjiro-Kamado

Survive the Killer | Auto Collect All Coins

Feb 3rd, 2020
1,328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. --[[
  2. Credits to; HamstaGang
  3. Official thread; https://v3rmillion.net/showthread.php?tid=942169
  4. --------------------------------------------------------------------------------
  5. Script was provided from the official Demon Slayers Community Server; https://discord.gg/ADEVZ5R
  6. Official thread; https://v3rmillion.net/showthread.php?tid=936292 |<-- More info
  7. ]]--
  8.  
  9. -- Grab all coins in the map.
  10. local LocalPlayer = game.Players.LocalPlayer
  11. local Mouse = LocalPlayer:GetMouse()
  12. Mouse.KeyDown:connect(function(KeyPressed)
  13.    if KeyPressed == "x" then -- Change keybind here to whatever key works best for you.
  14.        local coins = game:GetService("Workspace").CurrentMap.Coins:GetChildren()
  15.         for i, coin in pairs(coins) do
  16.             wait()
  17.             LocalPlayer.Character.HumanoidRootPart.CFrame = coin.CFrame
  18.         end
  19.    end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment