[Bug] CaptureService Is not working with image server

Hello everyone

I have a weird bug. when a player takes a screenshot on a selfie stick, only i see it and no one else can. that’s not what i wanted, i wanted a selfie stick that adds a photo tool to the player and from there they could see the photo. but it doesn’t work with anyone besides me.

The bug:

i think because roblox using id screen shot
and is there api about that?

I Already did that

--Client
local function resultCallback(results: {any}): ()
	local allRejected=true
	for contentId, accepted in results do
		if accepted then
			allRejected=false
		end
	end
	
	if allRejected then
		--// user might not want developer captures, don't prompt again
		userRejectedSaveCaptures=true
	end
end

local savedIds={}
local function onCaptureReady(contentId): ()
	print("Ready to capture")
	
	
	
	Humanoid:UnequipTools()
	RemoteEvent:FireServer(contentId)

	LocalPlayer.PlayerGui.MainGui.ScreenShotFrame.Visible=true
	LocalPlayer.PlayerGui.MainGui.ScreenShotFrame.BackgroundTransparency=0
	TweenService:Create(LocalPlayer.PlayerGui.MainGui.ScreenShotFrame, TweenInfo.new(1.5),{BackgroundTransparency=1}):Play()
	task.delay(1.5, function()
		LocalPlayer.PlayerGui.MainGui.ScreenShotFrame.Visible=false
	end)
	table.insert(savedIds, contentId)
	CameraCapture:PromptSaveCapturesToGallery(savedIds, resultCallback)
end

CameraCapture:CaptureScreenshot(function(contentId: any): ()
	onCaptureReady(contentId)
end)
--Server
Remote.OnServerEvent:Connect(function(LocalPlayer: Player, contentId: number)
	local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
	local Humanoid: Humanoid = Character:WaitForChild("Humanoid")
	tool.Handle.ScreenShot:Play()


	local ClonedPolaroidPic = polaroidPic:Clone()
	ClonedPolaroidPic:FindFirstChild("Handle"):FindFirstChild("Part"):FindFirstChild("SurfaceGui"):FindFirstChild("ImageLabel").Image=contentId

	if LocalPlayer.Backpack:FindFirstChild("Photo") then
		LocalPlayer.Backpack:FindFirstChild("Photo"):Destroy()
	elseif Character:FindFirstChild("Photo") then
		Character:FindFirstChild("Photo"):Destroy()
	end

	Humanoid:EquipTool(ClonedPolaroidPic)
	ClonedPolaroidPic.Parent=LocalPlayer.Backpack
	ClonedPolaroidPic.StartEffect.Enabled=true
end)

and it’s send id like that
image

Capture Service doesnt support server side as of now. You can read details about it here:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.