#Podcast Game

1 messages · Page 1 of 1 (latest)

terse shell
#

So, I am making a podcast game and I cant seem to get the mic in front of the players face just like any other ordinary podcast. I have a video provided. But this is my local script: local button = script.Parent
local studioFrame = button.Parent
local player = game.Players.LocalPlayer
local micModel = game.ReplicatedStorage:WaitForChild("PodcastMic")

-- Auto-detect available HouseStudio seats
local function getAvailableSeat()
for _, seat in ipairs(workspace:GetChildren()) do
if seat:IsA("Seat") and seat.Name:match("^HouseStudioSeat") then
local isOccupied = seat:FindFirstChild("IsOccupied")
if isOccupied and isOccupied.Value == false then
isOccupied.Value = true
return seat
end
end
end
return nil
end

-- Spawns and welds a mic in front of the player's face
local function spawnMic(character)
local head = character:WaitForChild("Head")
local micClone = micModel:Clone()
micClone.Parent = workspace

-- Position mic ~2 studs in front of face
micClone:SetPrimaryPartCFrame(head.CFrame * CFrame.new(0.2, -0.1, 0.3))

-- Weld all parts to the head
for _, part in ipairs(micClone:GetDescendants()) do
    if part:IsA("BasePart") then
        local weld = Instance.new("WeldConstraint")
        weld.Part0 = head
        weld.Part1 = part
        weld.Parent = part
    end
end

end

-- Button click logic
button.MouseButton1Click:Connect(function()
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")

local seat = getAvailableSeat()
if seat then
    -- Move player above the seat (then Roblox will auto-sit them)
    hrp.CFrame = seat.CFrame + Vector3.new(0, 2.5, 0)

    spawnMic(character)
    studioFrame.Visible = false
else
    warn("House Studio is full!")
end

end)

trail forge
#

@terse shell Can the player move?