How would I get this to only work on the player?

Hello! I am making a FNAF roblox game and I wanted to try to add shop items. I did it and it works. But I had one problem with one thing. So whenever you buy this one thing from the shop, you get to see more far( removes fog to go more back ) and so It worked… But for every player. How would I get it to work with the person who brought the perk?

game.ReplicatedStorage.StartingSoon.OnServerEvent:Connect(function(player)
	local HitBox = script.HitBox
	HitBox.Parent = game.Workspace
	Debounce = false
	--Perks
	if player.leaderstats.Perk1.Value == 1 then
		player.Character.Humanoid.WalkSpeed = 11
	elseif player.leaderstats.Perk1.Value == 0 then
		player.Character.Humanoid.WalkSpeed = 7
	end
end)

If you want something to happen for only one player, you should run the code locally (LocalScript).