Invalid argument #3 (Instance expected, got string)

It says this on line 8 so the one that says “B.Value = script.Player.Value”

wait(1)
script.Parent.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent then
		if hit.Parent.Name == script.Player.Value or hit.Parent.Parent.Name == script.Player.Value then return end
		if hit.Parent:findFirstChild("creator") == nil then
		local B = Instance.new("ObjectValue")
		B.Name = "creator"
		B.Value = script.Player.Value
		game.Debris:AddItem(B,2)
		B.Parent = hit.Parent
		script.Disabled = true 
		hit.Parent.Humanoid:TakeDamage(script.DamageTaken.Value)
			hit.Parent.Humanoid.WalkSpeed = 8
		end
	end
end)

ObjectValue is expecting an instance, what you’re giving it is a string value.

If you’re looking for the player do something like:

B.Value = game.Players[script.Player.Value]

This should make B’s value into the instance you’re looking for in the string value

ur a genius bro thank you so much