Random Key Spawn Script
Customize your variables, then fill in the blanks!
Your Custom Settings
Tool name in Workspace
Folder with spawn location parts
Script (ServerScriptService)
This script moves the key to a random spawn point when the game starts. Create a folder called "spawnPoints" in Workspace with small parts where you want the key to appear!
local keyTool = workspace:("keyTool")
local spawnPoints = workspace:WaitForChild("spawnPoints")
local allSpawns = spawnPoints:()
local randomIndex = math.(1, #allSpawns)
local chosenSpawn = allSpawns[randomIndex]
keyTool:(chosenSpawn.)
