Advertisement
Joriangames

BATTLE SPAWN SYSTEM!!

Jan 4th, 2021
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. --Thanks for using this script
  2. --This script is made by Joriangames/Problox Studio Scripts
  3. --Want to know how to use this? Watch my tutorial: https://youtu.be/DCiA3nRDBj8
  4.  
  5. local spawns = game.Workspace.Spawns:GetChildren()
  6. local player = game.Players.LocalPlayer
  7. local debounce = true
  8.  
  9. script.Parent.MouseButton1Click:Connect(function()
  10.     if debounce == true then
  11.         debounce = false
  12.        
  13.         local randomSpawn = spawns[math.random(1, #spawns)]
  14.         player.Character.HumanoidRootPart.CFrame = randomSpawn.CFrame      
  15.         script.Parent.Visible = false      
  16.        
  17.         wait()
  18.         debounce = true
  19.     end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement