in the future - u will be able to do some more stuff here,,,!! like pat catgirl- i mean um yeah... for now u can only see others's posts :c
-- LocalScript in StarterPlayerScripts
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local spectateGui = playerGui:WaitForChild("SpectateGui")
local spectateFrame = spectateGui:WaitForChild("SpectateFrame")
local timerLabel = spectateFrame:WaitForChild("TimerLabel")
local function onDeath()
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
humanoid.Died:Connect(function()
-- Find the killer
local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
if humanoidRootPart then
local killer = humanoidRootPart:FindFirstChild("creator") -- assumes killer is tagged as "creator"
if killer then
killer = game.Players:GetPlayerByUserId(killer.Value)
if killer then
-- Set up spectating
local camera = workspace.CurrentCamera
camera.CameraSubject = killer.Character:FindFirstChild("Humanoid")
camera.CameraType = Enum.CameraType.Custom
-- Show the spectate GUI
spectateFrame.Visible = true
-- Timer logic
local timer = 3
timerLabel.Text = tostring(timer)
while timer > 0 do
wait(1)
timer = timer - 1
timerLabel.Text = tostring(timer)
end
-- Hide the GUI and stop spectating
spectateFrame.Visible = false
camera.CameraSubject = character:FindFirstChild("Humanoid")
camera.CameraType = Enum.CameraType.Custom
end
end
end
end)
end
-- Connect the onDeath function
if player.Character and player.Character:FindFirstChildOfClass("Humanoid") then
onDeath()
else
player.CharacterAdded:Connect(function()
onDeath()
end)
end
2 - 4
Go check out my blox fruits market slate market (not deleting in 2 days) heart-io.github.io/Slate-market/
2 - 2
IM BOUT TO MAKE THE BIGGEST MICKEY FNF REVAMP EVER!! CANT WAIT (im hoping the suns devs see this cause i will in fact contact them)
2 - 0
Let’s raid Roblox servers but you have to wear my avatar on Roblox and there has to be at least 50 too 100 or 200 people to do this I want everyone on YouTube too gather
4 - 6
I will watch you in ur sleep and put you into pseudocoma and have a dance party when ur done sleeping 😊
Link to my gaming channel:youtube.com/channel/UCNyEHKIVPCCPt3V603LJqIQ
Discord: discord.gg/rFWdPvMnBY