Http requests can only be executed by game server error

I have an empty baseplate with 1 script in serverscriptservice.

the script is:

function setCameraMode()
	for _, player in ipairs(game:GetService("Players"):GetPlayers()) do
		player.CameraMode = Enum.CameraMode.LockFirstPerson
	end
end

game:GetService("Players").PlayerAdded:Connect(function(player)
	player.CameraMode = Enum.CameraMode.LockFirstPerson
end)

setCameraMode()

When I press play, It does not work and shows the error “Http requests can only be executed by game server” I have Http requests in game settings enabled but it still shows this error. How can I fix this?

The error is saying the client is trying to send an Http request. Are you sure you don’t have any back doors?

No, as they mentioned they only have ONE script.

I just made the baseplate a second ago and wrote this script so I don’t believe so. Any way i can double check whether there are some?

Could it be a plugin-made script?

I think it was. I deleted all the plugins and made a new baseplate and I don’t have the error anymore. However my script isn’t working as intended so I will have to try to fix that. Thanks for your help!

1 Like

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