Convert Instance (Usually script name.) to string?

I was wondering if it possible to convert an instance(Name) to a string? I tried tostring() but it threw attempt to call string value error.

function RisytalModules:SetType(Player: Player?, Type: Instance?)
	if Player then
		game:GetService("ServerStorage"):FindFirstChild(Player.Name.."'s Data"):FindFirstChild("CharacterType").Value = tostring(Type)
local engine = require(game:GetService("ServerScriptService"):FindFirstChild("Modules"):FindFirstChild("__GAMEENGINE"))
local CHARACTER1 = game:GetService("ServerStorage"):FindFirstChild("Characters"):FindFirstChild("TestDummy") --ModuleScript
engine:SetType(__PLAYER, CHARACTER1)
1 Like

Instance.Name? (Filler text for the minimum)

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