VoteScriptt = local player = game.Players.LocalPlayer
local gui = script.Parent
local frame = gui:WaitForChild("Frame")
local forestButton = frame:WaitForChild("ForestButton")
local schoolButton = frame:WaitForChild("SchoolButton")
local cityButton = frame:WaitForChild("CityButton")
local spawns = {
Forest = workspace:WaitForChild("ForestSpawn"),
School = workspace:WaitForChild("SchoolSpawn"),
City = workspace:WaitForChild("CitySpawn")
}
local picked = false
local function teleportToMap(mapName)
if picked then return end
picked = true
local character = player.Character or player.CharacterAdded:Wait()
local root = character:WaitForChild("HumanoidRootPart")
root.CFrame = spawns[mapName].CFrame + Vector3.new(0, 4, 0)
frame.Visible = false
end
forestButton.MouseButton1Click:Connect(function()
teleportToMap("Forest")
end)
schoolButton.MouseButton1Click:Connect(function()
teleportToMap("School")
end)
cityButton.MouseButton1Click:Connect(function()
teleportToMap("City")
end)
Discord = / discord