Sending data to new servers (MessagingService)

local MessagingService = game:GetService("MessagingService")

MessagingService:SubscribeAsync("test", function(message)
	print(message.Data)
	local MyPart = Instance.new("Part")
	MyPart.Parent = workspace
	MyPart.Anchored = true
	MyPart.Position = Vector3.new(0, 5, 0)
end)

I made a script which uses MessagingService to build a part in the workspace
What I want to happen is for the part to save to the game after it’s created in the function above. For example, whenever a new server is created, it will make a part and set the part’s position to (0, 5, 0)

Is there a service for this?

1 Like